From: Thierry Parmentelat Date: Thu, 12 Dec 2013 11:36:03 +0000 (+0100) Subject: fix for sfi version and sfi trusted, that were broken because of the -R option X-Git-Tag: sfa-3.1-2~50^2^2 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=6a1a59271fceec03bbe0a9bbfda888a4f8e5c673 fix for sfi version and sfi trusted, that were broken because of the -R option --- diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 157828eb..6e60f636 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -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: