From: Thierry Parmentelat Date: Wed, 30 Apr 2014 09:12:11 +0000 (+0200) Subject: fix sfi aliases - sfi add would not work X-Git-Tag: sfa-3.1-4~15 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=b2f714676f05d57922503445089e241b630e077f fix sfi aliases - sfi add would not work --- diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 171768f0..3a61bffa 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -524,7 +524,8 @@ use this if you mean an authority instead""") # Main: parse arguments and dispatch to command # def dispatch(self, command, command_options, command_args): - method=getattr(self, command, None) + (doc, args_string, example, canonical) = commands_dict[command] + method=getattr(self, canonical, None) if not method: print "sfi: unknown command %s"%command raise SystemExit,"Unknown command %s"%command