#Now we have the slice record fixed_slicerec_dict, get the
#jobs associated to this slice
leases_list = []
- if login is not None:
- leases_list = self.GetLeases(login = login)
+
+ leases_list = self.GetLeases(login = login)
#If no job is running or no job scheduled
#return only the slice record
if leases_list == [] and fixed_slicerec_dict:
#the lease to the requested leases list
duration_in_seconds = \
int(single_requested_lease['duration'])*60
- if duration_in_seconds > GetMinExperimentDurationInSec() :
+ if duration_in_seconds > self.slab_api.GetMinExperimentDurationInSec() :
requested_lease_list.append(single_requested_lease)
return requested_lease_list