diff options
author | Adrian Likins <alikins@redhat.com> | 2008-06-26 16:38:10 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-06-26 16:38:10 -0400 |
commit | 466b8931afe0db3a44a5929b3dfb0441d0137c19 (patch) | |
tree | 0c59e6aa33fe0dda329333117bf0a56a49e47534 | |
parent | 1f630443252840ff8fc6e1b590b50723688a79e8 (diff) | |
download | third_party-func-466b8931afe0db3a44a5929b3dfb0441d0137c19.tar.gz third_party-func-466b8931afe0db3a44a5929b3dfb0441d0137c19.tar.xz third_party-func-466b8931afe0db3a44a5929b3dfb0441d0137c19.zip |
check for empty method list on call cmd. dont traceback if
we get one
-rw-r--r-- | func/overlord/cmd_modules/call.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/func/overlord/cmd_modules/call.py b/func/overlord/cmd_modules/call.py index 53db70e..4615dd5 100644 --- a/func/overlord/cmd_modules/call.py +++ b/func/overlord/cmd_modules/call.py @@ -104,6 +104,11 @@ class Call(base_command.BaseCommand): # I kind of feel like we shouldn't be parsing args here, but I'm # not sure what the write place is -al; + + if not args: + self.outputUsage() + return + self.module = args[0] if len(args) > 1: self.method = args[1] |