Skip to content
Snippets Groups Projects
Commit 14a7bbcd authored by Benziane Chakib's avatar Benziane Chakib
Browse files

fixed bug while checking role from server when authenticating

parent 728caf3d
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ class CCNode(object):
logging.warning('Unknown error while authenticating: %s' % err)
return False
else:
if role is not 'hypervisor':
if role != 'hypervisor':
logging.warning('Bad role affected by server: %s' % role)
return False
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment