Skip to content

Commit 33fb94c

Browse files
hjensasevallesp
authored andcommitted
Fix _network_data fact in create_cloud_init_iso.yml
We need curly brackets to resolve the value, instead of setting the fact to string `vm_data.networkconfig` ... Jira: OSPRH-17107
1 parent 29a1d2c commit 33fb94c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

roles/libvirt_manager/tasks/create_cloud_init_iso.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@
5050
when:
5151
- vm_data.networkconfig | type_debug == "dict"
5252
ansible.builtin.set_fact:
53-
_network_data: vm_data.networkconfig
53+
_network_data: "{{ vm_data.networkconfig }}"
5454
- name: "Define the network config for each vm"
5555
when:
5656
- vm_data.networkconfig | type_debug == "list"
5757
ansible.builtin.set_fact:
58-
_network_data: vm_data.networkconfig[vm_idx]
58+
_network_data: "{{ vm_data.networkconfig[vm_idx] }}"
5959

6060
- name: "Call the config_drive role"
6161
vars:

0 commit comments

Comments
 (0)