From 6654cb1682d4dfa120a8196dfe93b1a120923909 Mon Sep 17 00:00:00 2001
From: Michal Rostecki <michal.rostecki@gmail.com>
Date: Fri, 6 May 2016 10:19:21 +0200
Subject: [PATCH] Add images from profile as matched only if no regex is used

Change-Id: I053e54c54883318dfc7daa64a58276487805de66
Closes-Bug: 1578955
---
 kolla/cmd/build.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index b305ffd7b4..9b818cb1de 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -521,8 +521,7 @@ class KollaWorker(object):
 
         if self.regex:
             filter_ += self.regex
-
-        if self.conf.profile:
+        elif self.conf.profile:
             for profile in self.conf.profile:
                 if profile not in self.conf.profiles:
                     self.conf.register_opt(cfg.ListOpt(profile,
-- 
GitLab