X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fclient%2Fsfi.py;h=c8082dc9dbf0a4cf79cf66e4f835dfd8f1abca1e;hb=a0b08c3177b6273ad22f3882cd62495743ed404c;hp=26a7f54440d8aa898b5f178a45e2f7e15d96f849;hpb=e3877c867d5e9120a21b585782460842539abadb;p=sfa.git diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 26a7f544..c8082dc9 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -1,7 +1,6 @@ # # sfi.py - basic SFA command-line client -# the actual binary in sfa/clientbin essentially runs main() -# this module is used in sfascan +# this module is also used in sfascan # import sys @@ -375,6 +374,7 @@ class Sfi: # a new option to retreive or not reservation-oriented RSpecs (leases) parser.add_option("-l", "--list_leases", dest="list_leases", type="choice", help="Retreive or not reservation-oriented RSpecs ([resources]|leases|all )", + choices=("all", "resources", "leases"), default="resources") # 'create' does return the new rspec, makes sense to save that too @@ -878,7 +878,7 @@ or version information about sfi itself cred = self.my_authority_credential_string() elif record_dict['type'] in ["slice"]: try: - cred = self.slice_credential_string(record.hrn) + cred = self.slice_credential_string(record_dict['hrn']) except ServerException, e: # XXX smbaker -- once we have better error return codes, update this # to do something better than a string compare