]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: fix ctx archive check for teuthology 40913/head
authorDeepika Upadhyay <dupadhya@redhat.com>
Mon, 19 Apr 2021 14:18:47 +0000 (19:48 +0530)
committerDeepika Upadhyay <dupadhya@redhat.com>
Mon, 19 Apr 2021 14:18:47 +0000 (19:48 +0530)
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
qa/tasks/cephadm.py

index 01d49a7f3acbe772ffbaaa622f03f518c48ea27c..9d9ae0fc5b94cc123f861a0c9a5affc21dc4342b 100644 (file)
@@ -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)