Merge branch 'master' of git://git.onelab.eu/sfa
authorLoic Baron <loic.baron@lip6.fr>
Mon, 22 May 2017 13:52:38 +0000 (15:52 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Mon, 22 May 2017 13:52:38 +0000 (15:52 +0200)
Conflicts:
sfa/iotlab/iotlabshell.py

sfa/iotlab/iotlabshell.py
sfa/managers/registry_manager.py

index 0b4a7c6..ac60097 100644 (file)
@@ -159,7 +159,7 @@ class IotLABShell(object):
         user['email'] = email
         user['sshPublicKey'] = slice_user['keys'][0]
         # ex : onelab.inria
-        user['structure'] = slice_user['urn'].split('+')[1]
+        user['structure'] = slice_user['urn'].split('+')[1].replace(':','.')
         email = (email.split('@'))[0]
         user['firstName'] = email.split('.')[0]
         try:
index 0646be7..e3cd0ee 100644 (file)
@@ -583,7 +583,6 @@ class RegistryManager:
         if type not in ['slice', 'user', 'node', 'authority']:
             raise UnknownSfaType(type)
 
-        credential = api.getCredential()
         registries = api.registries
 
         # Try to remove the object from the PLCDB of federated agg.
@@ -593,6 +592,7 @@ class RegistryManager:
             for registry in registries:
                 if registry not in [api.hrn]:
                     try:
+                        credential = api.getCredential()
                         result = registries[registry].remove_peer_object(
                             credential, record, origin_hrn)
                     except: