From: Thierry Parmentelat Date: Tue, 15 Apr 2014 16:05:56 +0000 (+0200) Subject: fix so that sfadump can be used to inspect gids and creds X-Git-Tag: sfa-3.1-4~28 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=756cdcc457721340785ee25028f72220527d7694 fix so that sfadump can be used to inspect gids and creds --- diff --git a/clientbin/sfadump.py b/clientbin/sfadump.py index 93fca705..fb654e79 100755 --- a/clientbin/sfadump.py +++ b/clientbin/sfadump.py @@ -115,7 +115,7 @@ def handle_input (filename, options): print "%s: unknown filekind '%s'"% (filename,kind) def main(): - usage = """%prog file1 [ .. filen] + usage = """%(prog)s file1 [ .. filen] display info on input files""" parser = ArgumentParser(usage=usage) diff --git a/sfa/trust/credential.py b/sfa/trust/credential.py index 4256673a..9a45400e 100644 --- a/sfa/trust/credential.py +++ b/sfa/trust/credential.py @@ -1056,8 +1056,8 @@ class Credential(object): def dump (self, *args, **kwargs): print self.dump_string(*args, **kwargs) - - def dump_string(self, dump_parents=False): + # show_xml is ignored + def dump_string(self, dump_parents=False, show_xml=None): result="" result += "CREDENTIAL %s\n" % self.get_subject() filename=self.get_filename()