]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
provision: ctx does not always have 'config' attribute 1042/head
authorDan Mick <dan.mick@redhat.com>
Tue, 7 Mar 2017 00:14:30 +0000 (16:14 -0800)
committerDan Mick <dan.mick@redhat.com>
Tue, 7 Mar 2017 00:14:53 +0000 (16:14 -0800)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
teuthology/provision/__init__.py

index b7b535962d93b8b945ca0b8c29f6404626cc80d5..b5512ea137767810859bc1e9c55088e15555682c 100644 (file)
@@ -13,7 +13,7 @@ log = logging.getLogger(__name__)
 
 
 def _logfile(ctx, shortname):
-    if (ctx.config.get('archive_path')):
+    if hasattr(ctx, 'config') and ctx.config.get('archive_path'):
         return os.path.join(ctx.config['archive_path'],
                             shortname + '.downburst.log')