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: wip-pdonnell-testing-20200918.022351~1141^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fabcbeab2c5c8819ce20134fe316e102090dc00f;p=ceph-ci.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 0256cdbc247..afcec9cda35 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')