Merge branch 'master' into senslab2
[sfa.git] / sfa / importer / sfa-import-plc.py
index dad723b..d41bbd4 100755 (executable)
@@ -18,11 +18,11 @@ import os
 import getopt
 import sys
 
-from sfa.util.table import SfaTable
-from sfa.util.xrn import get_leaf, get_authority
-from sfa.util.plxrn import hostname_to_hrn, slicename_to_hrn, email_to_hrn, hrn_to_pl_slicename
 from sfa.util.config import Config
-from sfa.util.xrn import Xrn
+from sfa.util.xrn import Xrn, get_leaf, get_authority
+from sfa.util.plxrn import hostname_to_hrn, slicename_to_hrn, email_to_hrn, hrn_to_pl_slicename
+
+from sfa.storage.table import SfaTable
 
 from sfa.importer.sfaImport import sfaImport
 
@@ -76,8 +76,6 @@ def main():
     
     # initialize registry db table
     table = SfaTable()
-    if not table.exists():
-       table.create()
 
     # create root authority 
     sfaImporter.create_top_level_auth_records(interface_hrn)