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: v17.1.0~2167^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40913%2Fhead;p=ceph.git qa/tasks/cephadm: fix ctx archive check for teuthology Signed-off-by: Deepika Upadhyay --- 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)