From: Deepika Upadhyay Date: Mon, 19 Apr 2021 14:18:47 +0000 (+0530) Subject: qa/tasks/cephadm: fix ctx archive check for teuthology X-Git-Tag: v16.2.5~39^2~4^2^2~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9d53d58f4243d50e22ccfa646b70cf5e635a6b08;p=ceph.git qa/tasks/cephadm: fix ctx archive check for teuthology Signed-off-by: Deepika Upadhyay (cherry picked from commit ec2a402f55e1f61c82d65f7609be16c675bfd7aa) --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index f7113a6cad83..a9cc1a039f9f 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)