From 9d53d58f4243d50e22ccfa646b70cf5e635a6b08 Mon Sep 17 00:00:00 2001 From: Deepika Upadhyay Date: Mon, 19 Apr 2021 19:48:47 +0530 Subject: [PATCH] qa/tasks/cephadm: fix ctx archive check for teuthology Signed-off-by: Deepika Upadhyay (cherry picked from commit ec2a402f55e1f61c82d65f7609be16c675bfd7aa) --- qa/tasks/cephadm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index f7113a6cad838..a9cc1a039f9f3 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -69,6 +69,8 @@ def update_archive_setting(ctx, key, value): """ Add logs directory to job's info log file """ + if ctx.archive is None: + return with open(os.path.join(ctx.archive, 'info.yaml'), 'r+') as info_file: info_yaml = yaml.safe_load(info_file) info_file.seek(0) -- 2.39.5