From 70b4272f5fb65a7ae5dd18c12269e88a737b821c Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 5 Dec 2017 14:20:11 -0700 Subject: [PATCH] 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 --- teuthology/task/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/task/__init__.py b/teuthology/task/__init__.py index 31b19acfe4..725c5c872d 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 -- 2.39.5