From fabcbeab2c5c8819ce20134fe316e102090dc00f Mon Sep 17 00:00:00 2001 From: Georgios Kyratsas Date: Thu, 28 May 2020 12:42:37 +0200 Subject: [PATCH] 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 --- qa/tasks/cephadm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 0256cdbc247ed..afcec9cda3560 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') -- 2.39.5