git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rough cleanup of the slicemanager business
[sfa.git]
/
sfa
/
importer
/
iotlabimporter.py
diff --git
a/sfa/importer/iotlabimporter.py
b/sfa/importer/iotlabimporter.py
index
3aa45ec
..
a794a40
100644
(file)
--- a/
sfa/importer/iotlabimporter.py
+++ b/
sfa/importer/iotlabimporter.py
@@
-6,6
+6,7
@@
from sfa.storage.model import init_tables
from sqlalchemy import Table, MetaData
from sqlalchemy.exc import NoSuchTableError
from sqlalchemy import Table, MetaData
from sqlalchemy.exc import NoSuchTableError
+
class IotLabImporter:
"""
Creates the iotlab specific lease table to keep track
class IotLabImporter:
"""
Creates the iotlab specific lease table to keep track
@@
-16,10
+17,10
@@
class IotLabImporter:
self.logger = loc_logger
self.logger.setLevelDebug()
self.logger = loc_logger
self.logger.setLevelDebug()
- def add_options
(self, parser):
+ def add_options(self, parser):
""" Not used and need by SFA """
pass
""" Not used and need by SFA """
pass
-
+
def _exists(self, tablename):
"""
Checks if the table exists in SFA database.
def _exists(self, tablename):
"""
Checks if the table exists in SFA database.
@@
-31,7
+32,6
@@
class IotLabImporter:
except NoSuchTableError:
return False
except NoSuchTableError:
return False
-
def run(self, options):
""" Run importer"""
def run(self, options):
""" Run importer"""