From 89b38dd347502ba59810d15697c04161e280956f Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 16 Jun 2014 12:29:03 -0600 Subject: [PATCH] Don't schedule an email job if email isn't set Signed-off-by: Zack Cerza --- teuthology/suite.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/teuthology/suite.py b/teuthology/suite.py index 9ee317c408..acfb37a9ea 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -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: -- 2.39.5