Re-activate and fix command "trusted" in sfi.py
authorMohamed Larabi <mohamed.larabi@inria.fr>
Tue, 8 Oct 2013 12:37:41 +0000 (14:37 +0200)
committerMohamed Larabi <mohamed.larabi@inria.fr>
Tue, 8 Oct 2013 12:37:41 +0000 (14:37 +0200)
sfa/client/sfi.py

index 1ac29a2..14122e1 100644 (file)
@@ -1591,8 +1591,7 @@ $ sfi m
         if count_success != count_all: sys.exit(1)
         return
 
-# Thierry: I'm turning this off as a command, no idea what it's used for
-#    @register_command("cred","")
+    @register_command("cred","")
     def trusted(self, options, args):
         """
         return the trusted certs at this interface (get_trusted_certs)
@@ -1603,5 +1602,6 @@ $ sfi m
             gid.dump()
             cert = Certificate(string=trusted_cert)
             self.logger.debug('Sfi.trusted -> %r'%cert.get_subject())
+            print "Certificate:\n%s\n\n"%trusted_cert
         return