X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fiotlab%2Fiotlabshell.py;fp=sfa%2Fiotlab%2Fiotlabshell.py;h=101de84a55815892400d9f461bff745411651dde;hb=a78041b7906e53b2d7c5c03bae7256e7035a1e3e;hp=ac6009701b27e96d8ae66bd9b8f4de2e43cd6677;hpb=65866811e8df57c89f3487db047b5653f306a3c8;p=sfa.git diff --git a/sfa/iotlab/iotlabshell.py b/sfa/iotlab/iotlabshell.py index ac600970..101de84a 100644 --- a/sfa/iotlab/iotlabshell.py +++ b/sfa/iotlab/iotlabshell.py @@ -150,11 +150,17 @@ class IotLABShell(object): """ # pylint:disable=E1123 logger.warning("iotlashell add_user") + logger.warning("slice_user: %s" % slice_user) + if 'urn' in slice_user: + organization = slice_user['urn'] + else: + organization = "SFA federation" # single account creation user = {"type": "SA", "city": "To be defined", "country": "To be defined", - "motivations": "SFA federation"} + "motivations": "SFA federation", + "organization": organization} email = slice_user['email'] user['email'] = email user['sshPublicKey'] = slice_user['keys'][0]