From: Georgios Kyratsas Date: Thu, 28 May 2020 10:42:37 +0000 (+0200) Subject: qa/tasks/cephadm: Add check fox already set image X-Git-Tag: v16.1.0~2204^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F35287%2Fhead;p=ceph.git qa/tasks/cephadm: Add check fox already set image Adding a check for already bootstrapped clusters where the image is already set to avoid overriding it. Signed-off-by: Georgios Kyratsas --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 0256cdbc247e..afcec9cda356 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -1078,7 +1078,8 @@ def task(ctx, config): ctx.ceph[cluster_name].bootstrapped = False # image - ctx.ceph[cluster_name].image = config.get('image') + if not hasattr(ctx.ceph[cluster_name], 'image'): + ctx.ceph[cluster_name].image = config.get('image') ref = None if not ctx.ceph[cluster_name].image: sha1 = config.get('sha1')