oslo_config_validator: Defaulting config_invalidations to empty list

When a node doesn't have anything to validate, the config invalidation
fails, reporting a false negative.

Related: https://bugzilla.redhat.com/2047328
Change-Id: I77e0c4568ecca2638aaa880369b9dec0eb5d1599
This commit is contained in:
David Vallee Delisle 2022-02-03 12:41:31 -05:00
parent 35491bd29a
commit ebcab3dbe9
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
path: "{{ service.0.path }}"
section: "{{ service.1.section }}"
key: "{{ service.1.option }}"
loop: "{{ config_invalidations | subelements('invalid_settings') }}"
loop: "{{ config_invalidations | default([]) | subelements('invalid_settings') }}"
loop_control:
loop_var: service
label: "{{ service.1.section }}/{{ service.1.option }} in {{ service.0.path }}"