From 6a1a59271fceec03bbe0a9bbfda888a4f8e5c673 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 12 Dec 2013 12:36:03 +0100 Subject: [PATCH] fix for sfi version and sfi trusted, that were broken because of the -R option --- sfa/client/sfi.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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: -- 2.43.0