]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Perform some sanity checks on --name
authorZack Cerza <zack.cerza@inktank.com>
Thu, 14 Aug 2014 16:20:40 +0000 (10:20 -0600)
committerZack Cerza <zack.cerza@inktank.com>
Thu, 14 Aug 2014 16:20:40 +0000 (10:20 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/schedule.py

index 37bd287024031ddd0216813ac0948ebc93ce9d58..6028050509d99f65a9bb7dd8ee663c69cbf8b93a 100644 (file)
@@ -14,6 +14,10 @@ def main(args):
         if args['--timeout']:
             raise ValueError(
                 '--timeout is only applicable to the last job in a suite')
+
+    name = args['--name']
+    if not name or name.isdigit():
+        raise ValueError("Please use a more descriptive value for --name")
     job_config = build_config(args)
     if args['--dry-run']:
         pprint.pprint(job_config)