Moving update_jobs_in_iotlabdb in iotlabpostgres.py
authorSandrine Avakian <sandrine.avakian@inria.fr>
Thu, 11 Jul 2013 13:59:21 +0000 (15:59 +0200)
committerSandrine Avakian <sandrine.avakian@inria.fr>
Thu, 11 Jul 2013 13:59:21 +0000 (15:59 +0200)
sfa/iotlab/iotlabapi.py
sfa/iotlab/iotlabpostgres.py

index 2732dfc..6a1e5c3 100644 (file)
@@ -937,7 +937,7 @@ class IotlabTestbedAPI():
             reservation_list = unfiltered_reservation_list
 
 
-        self.update_jobs_in_iotlabdb(job_oar_list, jobs_psql_id_list)
+        self.iotlab_db.update_jobs_in_iotlabdb(job_oar_list, jobs_psql_id_list)
 
         logger.debug(" IOTLABDRIVER.PY \tGetLeases reservation_list %s"\
                                                     %(reservation_list))
index 1e6139d..78f4b21 100644 (file)
@@ -158,7 +158,7 @@ class IotlabDB(object):
             self.iotlab_session.close()
             self.iotlab_session = None
 
-        def update_jobs_in_iotlabdb( job_oar_list, jobs_psql):
+        def update_jobs_in_iotlabdb(self, job_oar_list, jobs_psql):
             """ Cleans the iotlab db by deleting expired and cancelled jobs.
             Compares the list of job ids given by OAR with the job ids that
             are already in the database, deletes the jobs that are no longer in