]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: fix ctx archive check for teuthology
authorDeepika Upadhyay <dupadhya@redhat.com>
Mon, 19 Apr 2021 14:18:47 +0000 (19:48 +0530)
committerSage Weil <sage@newdream.net>
Tue, 4 May 2021 16:18:44 +0000 (11:18 -0500)
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
(cherry picked from commit ec2a402f55e1f61c82d65f7609be16c675bfd7aa)

qa/tasks/cephadm.py

index f7113a6cad83863fd1993ed6b837018b57de559d..a9cc1a039f9f3812ca0fc2a6959323f897ece387 100644 (file)
@@ -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)