]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't schedule an email job if email isn't set
authorZack Cerza <zack@cerza.org>
Mon, 16 Jun 2014 18:29:03 +0000 (12:29 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 25 Jun 2014 18:54:23 +0000 (12:54 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/suite.py

index 9ee317c408d42a4fd942967fb5c3880590df1b5c..acfb37a9ea2820503e9ed5c89ac81a1a8bb32a1f 100644 (file)
@@ -87,11 +87,10 @@ def prepare_and_schedule(owner, name, suite, machine_type, base,
         dry_run=dry_run,
         )
 
-    if num_jobs:
+    if email and num_jobs:
         arg = copy.deepcopy(base_args)
         arg.append('--last-in-suite')
-        if email:
-            arg.extend(['--email', email])
+        arg.extend(['--email', email])
         if timeout:
             arg.extend(['--timeout', timeout])
         if dry_run: