From: Sandrine Avakian Date: Tue, 24 Sep 2013 14:27:14 +0000 (+0200) Subject: Fixing bug in get_rspec. X-Git-Tag: sfa-2.1-27~8^2~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=198ca5e5069bc7b76fc1c68f1f8dae0b16a423c2;p=sfa.git Fixing bug in get_rspec. --- diff --git a/sfa/iotlab/iotlabaggregate.py b/sfa/iotlab/iotlabaggregate.py index 82bf3961..474aadae 100644 --- a/sfa/iotlab/iotlabaggregate.py +++ b/sfa/iotlab/iotlabaggregate.py @@ -369,7 +369,7 @@ class IotlabAggregate: """ - ldap_username= None + ldap_username = None rspec = None version_manager = VersionManager() version = version_manager.get_version(version) @@ -416,6 +416,8 @@ class IotlabAggregate: #if not options.get('list_leases') or options.get('list_leases') #and options['list_leases'] != 'leases': nodes = self.get_nodes(slices, slivers) + if slice_xrn and slices is None: + nodes = [] logger.debug("\r\n") logger.debug("IotlabAggregate \t lease_option %s \ get rspec ******* nodes %s"