X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fiotlab%2Fiotlabshell.py;fp=sfa%2Fiotlab%2Fiotlabshell.py;h=c51a7d649da5889d526f8b914ad68970832aec04;hb=468d984409e02e84d15eb35d3eb464f6a3059dd8;hp=becdbf50ecef7039ae067ac8e762301f450d755a;hpb=1b2d25aa9aa2eabde904b1473451305372c4ed92;p=sfa.git diff --git a/sfa/iotlab/iotlabshell.py b/sfa/iotlab/iotlabshell.py index becdbf50..c51a7d64 100644 --- a/sfa/iotlab/iotlabshell.py +++ b/sfa/iotlab/iotlabshell.py @@ -109,7 +109,7 @@ class IotLABShell(object): def get_reserved_nodes(self): """ - Get all OAR jobs with state Waiting or Running. + Get all OAR jobs not terminated. :Example: {"total":"1907", @@ -128,7 +128,9 @@ class IotLABShell(object): """ logger.warning("iotlashell get_reserved_nodes") reserved_nodes_dict = {} - request = 'admin/experiments?state=Running,Waiting' + request = ('admin/experiments?state=' + 'Running,Waiting,toAckReservation,' + 'toLaunch,Launching') try: experiments = self.api.method(request) except HTTPError as err: