FIT IoT-Lab driver: fixed add_user when user login not found
authorLoic Baron <loic.baron@lip6.fr>
Fri, 18 May 2018 11:02:24 +0000 (13:02 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Fri, 18 May 2018 11:02:24 +0000 (13:02 +0200)
sfa/iotlab/iotlabdriver.py

index d43395c..efbe4b6 100644 (file)
@@ -111,7 +111,7 @@ class IotLabDriver(Driver):
         email = caller_user['email']
         # ensure user exist in LDAP tree
         users = self._get_users(email)
-        if users and email not in users:
+        if email not in users:
             self.shell.add_user(caller_user)
             users = self._get_users(email)
         if users and email in users: