Update qubesformation.py

This commit is contained in:
Brian Zalewski 2022-10-18 10:29:21 -04:00 committed by GitHub
parent a6384ab40f
commit 6984a541c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,11 @@ def generate_datastructure(vms, task_vars):
# This allows you to deploy in multiple stages which is useful in cases
# where you want to create a template after another template is already provisioned.
if hasattr(task_vars, 'formation_vm_groups'):
continueLoop = true
for group in task_vars['formation_vm_groups']:
if n not in task_vars.groups[group]:
if n in task_vars.groups[group]:
continueLoop = false
if continueLoop:
continue
qubes = data['qubes']