X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fiotlab%2Fiotlabshell.py;h=ac6009701b27e96d8ae66bd9b8f4de2e43cd6677;hb=2880f8a4ec7acc3925cb865ce6b3076dd593274a;hp=c51a7d649da5889d526f8b914ad68970832aec04;hpb=4ef76bd85ea24906c4ebb580c896fe1084d6ba88;p=sfa.git diff --git a/sfa/iotlab/iotlabshell.py b/sfa/iotlab/iotlabshell.py index c51a7d64..ac600970 100644 --- a/sfa/iotlab/iotlabshell.py +++ b/sfa/iotlab/iotlabshell.py @@ -138,11 +138,6 @@ class IotLABShell(object): err.reason) return {'error': err.reason} for exp in experiments['items']: - # BUG IN OAR REST API : job with reservation didn't return - # resources attribute list. We use another request for - # finding job resources - exp_nodes = self.api.method('admin/experiments/%d' % exp['id']) - exp['resources'] = exp_nodes['nodes'] # BUG ASAP jobs without date information if exp['date'] == "as soon as possible": exp['date'] = 0 @@ -164,7 +159,7 @@ class IotLABShell(object): user['email'] = email user['sshPublicKey'] = slice_user['keys'][0] # ex : onelab.inria - user['structure'] = slice_user['slice_record']['authority'] + user['structure'] = slice_user['urn'].split('+')[1].replace(':','.') email = (email.split('@'))[0] user['firstName'] = email.split('.')[0] try: