Skip to content

Commit

Permalink
No group in inventory for managed: false vms.
Browse files Browse the repository at this point in the history
If the VM is created as `managed: false`, it is not added to
the inventory. This change ensure no group is created in the
inventory as well.

Fixes whitebox_neutron_tempest_plugin which rely on the inventory.
  • Loading branch information
hjensas authored and openshift-merge-bot[bot] committed Jun 12, 2024
1 parent c8fd8ab commit 9f8eee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/libvirt_manager/templates/all-inventory.yml.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all:
children:
{% for vm in _cifmw_libvirt_manager_layout.vms.keys() %}
{% for vm in _cifmw_libvirt_manager_layout.vms.keys() if _cifmw_libvirt_manager_layout.vms[vm].manage | default(true) %}
{{ (vm == 'crc') | ternary('ocp', vm) }}s:
vars:
{% if _cifmw_libvirt_manager_layout.vms[vm].target is defined %}
Expand Down

0 comments on commit 9f8eee4

Please sign in to comment.