From e4be00ba41353bc757e127ffa58694e60e40e41d Mon Sep 17 00:00:00 2001 From: Adam Feuer Date: Tue, 21 Feb 2017 20:48:57 -0800 Subject: [PATCH] add pillar name to docker tag - if pillar is present --- flyingcloud/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flyingcloud/base.py b/flyingcloud/base.py index 7165bad..abc945a 100644 --- a/flyingcloud/base.py +++ b/flyingcloud/base.py @@ -116,6 +116,8 @@ def __init__( self.container_name = container_name or "{}_{}".format(self.app_name, self.layer_name) self.docker_layer_name = "{}{}".format(host_org, self.container_name) + if self.pillar: + self.docker_layer_name = "{}_{}".format(self.docker_layer_name, self.pillar) self.layer_latest_name = "{}:latest".format(self.docker_layer_name) if self.source_image_base_name: