improve get_reserve_nodes
authorfsaintma <frederic.saint-marcel@inria.fr>
Fri, 18 Dec 2015 12:38:25 +0000 (13:38 +0100)
committerfsaintma <frederic.saint-marcel@inria.fr>
Fri, 18 Dec 2015 12:38:25 +0000 (13:38 +0100)
sfa/iotlab/iotlabshell.py

index c51a7d6..363e4b5 100644 (file)
@@ -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