mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix attribute check.
This commit is contained in:
parent
056ed21148
commit
345ce1b6d2
@ -69,7 +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:
|
||||
if (not srv.has_key('enabled')) or srv['enabled'] == True:
|
||||
data = {"name": srv['name'],
|
||||
"comment": srv['comment'],
|
||||
"host": srv['host'],
|
||||
|
Loading…
Reference in New Issue
Block a user