]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
docker/podman: tag crimson flavor container as 'sha-1-flavor' 35913/head
authorDeepika Upadhyay <dupadhya@redhat.com>
Mon, 6 Jul 2020 10:49:28 +0000 (16:19 +0530)
committerDeepika Upadhyay <dupadhya@redhat.com>
Mon, 6 Jul 2020 10:49:28 +0000 (16:19 +0530)
see also: ceph/ceph-container#1704

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
qa/tasks/cephadm.py

index cb873aaccc4bdc0d28fcea0dedc1ecc35a6a2985..228fc7449142abcfae40111851cae5b860dbd12a 100644 (file)
@@ -1156,8 +1156,13 @@ def task(ctx, config):
     ref = None
     if not ctx.ceph[cluster_name].image:
         sha1 = config.get('sha1')
+        flavor = config.get('flavor', 'default')
+
         if sha1:
-            ctx.ceph[cluster_name].image = container_image_name + ':' + sha1
+            if flavor == "crimson":
+                ctx.ceph[cluster_name].image = container_image_name + ':' + sha1 + '-' + flavor
+            else:
+                ctx.ceph[cluster_name].image = container_image_name + ':' + sha1
             ref = sha1
         else:
             # hmm, fall back to branch?