[/quote]
Untested, but...
With that
[/quote]
Didnt work with this
User List:
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
Untested, but...
With that
for
loop, it seems to me that userName
is the object to test: if userName == 'support':
[/quote]
Didnt work with this
sql_GetUser = "select user, host from mysql.user;" cursor.execute(sql_GetUser) logger.info("Got a list of users") users= cursor.fetchall () print("User List:") for userName in users: if userName == 'support': print('name is there') else: print('user isnt here')Result was
User List:
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here
user isnt here