X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fiotlab%2Fiotlabslices.py;h=ccffec578a7c2f660716e7a86fd075220d239590;hb=7575be18bc5a95e054f4edf71da6c8b4f42181b0;hp=d66d1e5cb247442a08fb01c50ae98cb34fbb082c;hpb=66be8bb9e8f140b123ca5ddb81b965757b01d547;p=sfa.git diff --git a/sfa/iotlab/iotlabslices.py b/sfa/iotlab/iotlabslices.py index d66d1e5c..ccffec57 100644 --- a/sfa/iotlab/iotlabslices.py +++ b/sfa/iotlab/iotlabslices.py @@ -130,6 +130,9 @@ class IotlabSlices: #First remove job whose duration is too short for job in requested_jobs_dict.values(): + job['duration'] = \ + str(int(job['duration']) \ + * self.driver.iotlab_api.GetLeaseGranularity()) if job['duration'] < self.driver.iotlab_api.GetLeaseGranularity(): del requested_jobs_dict[job['start_time']] @@ -350,7 +353,7 @@ class IotlabSlices: Checking that a user exist is based on the user's email. If the user is still not found in the LDAP, it means that the user comes from another - federated. In this case an account has to be created in LDAP + federated testbed. In this case an account has to be created in LDAP so as to enable the user to use the testbed, since we trust the testbed he comes from. This is done by calling AddPerson.