git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2880f8a
)
FIT IoT-Lab requires organization of new users: generate one from the urn
author
Loic Baron
<loic.baron@lip6.fr>
Tue, 6 Feb 2018 16:25:10 +0000
(17:25 +0100)
committer
Loic Baron
<loic.baron@lip6.fr>
Tue, 6 Feb 2018 16:25:10 +0000
(17:25 +0100)
sfa/iotlab/iotlabshell.py
patch
|
blob
|
history
diff --git
a/sfa/iotlab/iotlabshell.py
b/sfa/iotlab/iotlabshell.py
index
ac60097
..
101de84
100644
(file)
--- 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")
"""
# 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",
# 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]
email = slice_user['email']
user['email'] = email
user['sshPublicKey'] = slice_user['keys'][0]