]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
run.py: Fix argument parsing for --name
authorSam Lang <sam.lang@inktank.com>
Fri, 1 Feb 2013 13:46:04 +0000 (07:46 -0600)
committerSam Lang <sam.lang@inktank.com>
Fri, 1 Feb 2013 13:46:04 +0000 (07:46 -0600)
With the addition of the --name argument to the
teuthology program (run.py), jobs were failing
because --name was being treated as a non-arg
option, even though the name was being supplied
by the workers.  Fix that and give it a metavar.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
teuthology/run.py

index fcfc3f8e9d8517e005e0b6b18d91bf3fee2d70db..6136b091ea7c99b56d9abc12fd61916f809be2e8 100644 (file)
@@ -63,8 +63,7 @@ def parse_args():
         )
     parser.add_argument(
         '--name',
-        action='store_true',
-        default=False,
+        metavar='NAME',
         help='name for this teuthology run',
         )