This function return the password of particular server
(config_servers, name, host, db_port)
| 791 | |
| 792 | |
| 793 | def get_db_password(config_servers, name, host, db_port): |
| 794 | """ This function return the password of particular server """ |
| 795 | db_password = '' |
| 796 | for srv in config_servers: |
| 797 | if (srv['name'], srv['host'], srv['db_port']) == (name, host, db_port): |
| 798 | db_password = srv['db_password'] |
| 799 | return db_password |
| 800 | |
| 801 | |
| 802 | def get_db_server(sid): |