git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add ASAP mgt and fix start_time with ASAP jobs
[sfa.git]
/
sfa
/
iotlab
/
iotlabshell.py
diff --git
a/sfa/iotlab/iotlabshell.py
b/sfa/iotlab/iotlabshell.py
index
f1fb1db
..
becdbf5
100644
(file)
--- 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
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']
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
reserved_nodes_dict[exp['id']] = exp
return reserved_nodes_dict