Merge "Filter computes with nova_host defined" into stable/victoria

This commit is contained in:
Zuul 2020-12-19 05:43:51 +00:00 committed by Gerrit Code Review
commit 5e327e0140
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ outputs:
os_nova_host_aggregate:
name: {get_attr: [NovaComputeAvailabilityZoneValue, value]}
availability_zone: {get_attr: [NovaComputeAvailabilityZoneValue, value]}
hosts: "{{ groups['nova_compute'] | default([]) | map('extract', hostvars, 'nova_host') | list }}"
hosts: "{{ groups['nova_compute'] | default([]) | map('extract', hostvars, 'nova_host') | select('defined') | list }}"
auth:
username: admin
password: {get_param: AdminPassword}