Skip to content

Commit 5d16579

Browse files
author
Marc Schöchlin
committed
bugfix
1 parent fe04c29 commit 5d16579

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/openstack_workload_generator/__main__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def establish_connection():
170170
)
171171
if args.ansible_inventory:
172172
workload_project.dump_inventory_hosts(args.ansible_inventory)
173-
if args.clouds_yaml:
173+
if args.generate_clouds_yaml:
174174
clouds_yaml_data[
175175
f"{workload_domain.domain_name}-{workload_project.project_name}"
176176
] = workload_project.get_clouds_yaml_data()
@@ -179,10 +179,11 @@ def establish_connection():
179179
args.delete_machines
180180
):
181181
machine_obj.delete_machine()
182-
if args.generate_clouds_yaml:
183-
LOGGER.info(f"Creating a a clouds yaml : {args.generate_clouds_yaml}")
184182

183+
if args.generate_clouds_yaml:
184+
LOGGER.info(f"Creating a clouds yaml : {args.generate_clouds_yaml}")
185185
clouds_yaml_data_new = {"clouds": clouds_yaml_data}
186+
186187
if os.path.exists(args.generate_clouds_yaml):
187188
with open(args.generate_clouds_yaml, "r") as file:
188189
existing_data = yaml.safe_load(file)

0 commit comments

Comments
 (0)