summaryrefslogtreecommitdiffstats
path: root/func
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2008-06-26 16:45:47 -0400
committerAdrian Likins <alikins@redhat.com>2008-06-26 16:45:47 -0400
commit7130f3b2bcd01d978a564eca9e2a4f739db22262 (patch)
tree4cadd5ec02fee4c0581f7f20ca69953d7a20331a /func
parent466b8931afe0db3a44a5929b3dfb0441d0137c19 (diff)
downloadthird_party-func-7130f3b2bcd01d978a564eca9e2a4f739db22262.tar.gz
third_party-func-7130f3b2bcd01d978a564eca9e2a4f739db22262.tar.xz
third_party-func-7130f3b2bcd01d978a564eca9e2a4f739db22262.zip
fix traceback on "func '*' copyfile". aka, call with no arguments
Diffstat (limited to 'func')
-rw-r--r--func/overlord/cmd_modules/copyfile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/func/overlord/cmd_modules/copyfile.py b/func/overlord/cmd_modules/copyfile.py
index 63341f2..f464575 100644
--- a/func/overlord/cmd_modules/copyfile.py
+++ b/func/overlord/cmd_modules/copyfile.py
@@ -42,6 +42,10 @@ class CopyFile(base_command.BaseCommand):
self.verbose = self.options.verbose
def do(self, args):
+ if not args:
+ self.outputUsage()
+ return
+
self.server_spec = self.parentCommand.server_spec
self.getOverlord()