fix for sfi version and sfi trusted, that were broken because of the -R option
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 12 Dec 2013 11:36:03 +0000 (12:36 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 12 Dec 2013 11:36:03 +0000 (12:36 +0100)
sfa/client/sfi.py

index 157828e..6e60f63 100644 (file)
@@ -392,8 +392,8 @@ class Sfi:
                               help="display version of the local client")
 
         if command in ("version", "trusted"):
-            parser.add_option("-R","--registry-interface",
-                              action="store_true", dest="registry-interface", default=False,
+            parser.add_option("-R","--registry_interface",
+                              action="store_true", dest="registry_interface", default=False,
                               help="target the registry interface instead of slice interface")
 
         if command in ("add", "update"):
@@ -880,7 +880,7 @@ use this if you mean an authority instead""")
         if options.version_local:
             version=version_core()
         else:
-            if options.registry-interface:
+            if options.registry_interface:
                 server=self.registry()
             else:
                 server = self.sliceapi()
@@ -1618,13 +1618,13 @@ $ sfi m -b http://mymanifold.foo.com:7080/
         """
         return the trusted certs at this interface (get_trusted_certs)
         """ 
-        if options.registry-interface:
+        if options.registry_interface:
             server=self.registry()
         else:
             server = self.sliceapi()
         cred = self.my_authority_credential_string()
         trusted_certs = server.get_trusted_certs(cred)
-        if not options.registry-interface:
+        if not options.registry_interface:
             trusted_certs = ReturnValue.get_value(trusted_certs)
 
         for trusted_cert in trusted_certs: