From ec2a402f55e1f61c82d65f7609be16c675bfd7aa 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 --- qa/tasks/cephadm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 01d49a7f3acb..9d9ae0fc5b94 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -68,6 +68,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.47.3