X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fimporter%2Fiotlabimporter.py;h=17891cf3556017be4abb57b71b7504eb7bf87f7f;hb=426504ceb81f60de2ee4711c7783a3df681f363a;hp=c29457c9168b661222300f482a8a8dc317d25181;hpb=38a5b91de2913a5a5501b3b5a74ec01e3b3be3b7;p=sfa.git diff --git a/sfa/importer/iotlabimporter.py b/sfa/importer/iotlabimporter.py index c29457c9..17891cf3 100644 --- a/sfa/importer/iotlabimporter.py +++ b/sfa/importer/iotlabimporter.py @@ -71,7 +71,7 @@ class IotlabImporter: - def exists(self, tablename, engine): + def exists(self, tablename): """ Checks if the table specified as tablename exists. :param tablename: name of the table in the db that has to be checked. @@ -518,11 +518,9 @@ class IotlabImporter: #No slice update upon import in iotlab else: # xxx update the record ... - self.logger.warning("Slice update not yet implemented") - pass - # record current users affiliated with the slice - + self.logger.warning("Iotlab Slice update not implemented") + # record current users affiliated with the slice slice_record.reg_researchers = [user_record] try: global_dbsession.commit() @@ -549,7 +547,7 @@ class IotlabImporter: # leases_db = TestbedAdditionalSfaDB(config) #Create special slice table for iotlab - if not self.exists('lease_table', engine): + if not self.exists('lease_table'): init_tables(engine) self.logger.info("IotlabImporter.run: lease_table table created ")