X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclientbin%2Fsfaadmin.py;h=b208eb0cff0c87e55b225187c48935dca8ee3b97;hb=a90105fdce76597a2364849440303dc55720c1a5;hp=0b22998c652f42c9f493625bef2a06512f590c6b;hpb=f0216fbadfed478863200fa7eae158e23f41ccf9;p=sfa.git diff --git a/sfa/clientbin/sfaadmin.py b/sfa/clientbin/sfaadmin.py index 0b22998c..b208eb0c 100755 --- a/sfa/clientbin/sfaadmin.py +++ b/sfa/clientbin/sfaadmin.py @@ -82,7 +82,9 @@ class RegistryCommands(Commands): def import_registry(self): - pass + from sfa.importer import Importer + importer = Importer() + importer.run() @args('-a', '--all', dest='all', metavar='', action='store_true', default=False, @@ -90,7 +92,7 @@ class RegistryCommands(Commands): @args('-c', '--certs', dest='certs', metavar='', action='store_true', default=False, help='Remove all cached certs/gids found in %s' % Hierarchy().basedir ) @args('-0', '--no-reinit', dest='reinit', metavar='', action='store_false', default=True, - help='By default a new DB schema is installed after the cleanup; this option prevents that') + help='Prevents new DB schema from being installed after cleanup') def nuke(self, all=False, certs=False, reinit=True): from sfa.storage.dbschema import DBSchema from sfa.util.sfalogging import _SfaLogger