From: Zack Cerza Date: Tue, 5 Dec 2017 21:20:11 +0000 (-0700) Subject: Task: Tolerate a missing ctx.config X-Git-Tag: 1.1.0~371^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=70b4272f5fb65a7ae5dd18c12269e88a737b821c;p=teuthology.git Task: Tolerate a missing ctx.config When we initialize a ConsoleLog task during FOG reimaging, the ctx object has no config attribute. Signed-off-by: Zack Cerza --- diff --git a/teuthology/task/__init__.py b/teuthology/task/__init__.py index 31b19acfe..725c5c872 100644 --- a/teuthology/task/__init__.py +++ b/teuthology/task/__init__.py @@ -41,6 +41,8 @@ class Task(object): dict with the same name as this task. Override any settings in self.config with those overrides """ + if not hasattr(self.ctx, 'config'): + return all_overrides = self.ctx.config.get('overrides', dict()) if not all_overrides: return