From 26e36416d0d7955bfb36becda05a014aee4f2a9e Mon Sep 17 00:00:00 2001 From: karmab Date: Sat, 9 May 2020 11:41:55 +0200 Subject: [PATCH] check clientprofile when deploying images within a plan --- kvirt/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kvirt/config.py b/kvirt/config.py index a25e302b7..f95b2bde1 100644 --- a/kvirt/config.py +++ b/kvirt/config.py @@ -1250,7 +1250,8 @@ def plan(self, plan, ansible=False, url=None, path=None, autostart=False, contai common.pprint("Deploying Images...") images = [os.path.basename(t) for t in k.volumes()] for image in imageentries: - if image in images or image in self.profiles: + clientprofile = "%s_%s" % (self.client, image) + if image in images or image in self.profiles or clientprofile in self.profiles: common.pprint("Image %s skipped!" % image, color='blue') continue else: