Skip to content

Commit 362c4cf

Browse files
authored
Merge pull request #2595 from stackhpc/fix-port-group-query
fix: use new property format for port group playbook
2 parents 6a4d547 + 76a4b61 commit 362c4cf

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

etc/kayobe/environments/baremetal/ansible/add-port-groups.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
baremetal_ports: "{{ baremetal_ports | default([]) + [item] }}"
6464
loop: "{{ port_list.stdout | from_json | community.general.json_query(_query) }}"
6565
vars:
66-
_query: "[?\"Physical Network\"=='{{ ironic_bond_physical_network_name }}'].{uuid: UUID, mac_address: Address, port_group: \"Portgroup UUID\"}"
66+
_query: "[?\"physical_network\"=='{{ ironic_bond_physical_network_name }}'].{uuid: uuid, mac_address: address, port_group: \"portgroup_uuid\"}"
6767

6868
- name: List existing port groups
6969
ansible.builtin.command:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes problem whereby properties are now lowercase
5+
and contain underscore rather than space in the
6+
``add-port-groups`` playbook.

0 commit comments

Comments
 (0)