Skip to content

Commit

Permalink
check clientprofile when deploying images within a plan
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed May 9, 2020
1 parent 6f538cd commit 26e3641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kvirt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 26e3641

Please sign in to comment.