X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fiotlab%2Fiotlabshell.py;h=becdbf50ecef7039ae067ac8e762301f450d755a;hb=f1919c3c6a9dafb73722538f566c724b7ecfb09b;hp=f1fb1db0e97e44655751ec6d530aa5d599e68373;hpb=862a054f009010f2356c0064bd0930b562bfb443;p=sfa.git diff --git a/sfa/iotlab/iotlabshell.py b/sfa/iotlab/iotlabshell.py index f1fb1db0..becdbf50 100644 --- a/sfa/iotlab/iotlabshell.py +++ b/sfa/iotlab/iotlabshell.py @@ -137,10 +137,13 @@ class IotLABShell(object): 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 + # 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 reserved_nodes_dict[exp['id']] = exp return reserved_nodes_dict