mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Allow test servers to be enabled or disabled easily in the config
This commit is contained in:
parent
d0a9b25c57
commit
056ed21148
@ -20,7 +20,8 @@
|
||||
"db_port": 5432,
|
||||
"maintenance_db": "postgres",
|
||||
"sslmode": "prefer",
|
||||
"tablespace_path": ""
|
||||
"tablespace_path": "",
|
||||
"enabled": true
|
||||
}
|
||||
],
|
||||
"server_update_data": [
|
||||
|
@ -69,6 +69,7 @@ def get_config_data():
|
||||
"""This function reads the server data from config_data"""
|
||||
server_data = []
|
||||
for srv in test_setup.config_data['server_credentials']:
|
||||
if not hasattr(srv, 'enabled') or srv['enabled'] == True:
|
||||
data = {"name": srv['name'],
|
||||
"comment": srv['comment'],
|
||||
"host": srv['host'],
|
||||
|
Loading…
Reference in New Issue
Block a user