]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't explode if results_sending_email isn't set
authorZack Cerza <zack.cerza@inktank.com>
Wed, 5 Nov 2014 00:53:07 +0000 (17:53 -0700)
committerZack Cerza <zack.cerza@inktank.com>
Wed, 5 Nov 2014 00:53:07 +0000 (17:53 -0700)
Signed-off-by: Zack Cerza <zack@cerza.org>
teuthology/results.py

index 14f0789ad5554f5ea9d0531bbce54b50b14e99fb..06ac6ee78b6948ea0ce5feca3dda3f03554477b8 100644 (file)
@@ -55,7 +55,8 @@ def results(args):
         if args.email:
             email_results(
                 subject=subject,
-                from_=args.teuthology_config['results_sending_email'],
+                from_=args.teuthology_config.get('results_sending_email',
+                                                 'teuthology'),
                 to=args.email,
                 body=body,
             )