Python 3 fix for the regression tests

This commit is contained in:
George Gelashvili authored and Dave Page committed 2017-01-20 15:29:57 +00:00
1 parent 415119d581
commit b4d4cffc60
1 file changed
+1 -1
+1 -1
View File
@@ -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 srv.has_key('enabled')) or srv['enabled'] == True:
if (not 'enabled' in srv) or srv['enabled']:
data = {"name": srv['name'],
"comment": srv['comment'],
"host": srv['host'],