Skip to content
Snippets Groups Projects
Commit 296fdfad authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix 'nova_cephx_raw_key' is undefined"

parents 692d176c 6ff63372
No related branches found
No related tags found
No related merge requests found
...@@ -111,11 +111,13 @@ ...@@ -111,11 +111,13 @@
- item.enabled | bool - item.enabled | bool
- external_ceph_cephx_enabled | bool - external_ceph_cephx_enabled | bool
with_items: with_items:
# NOTE(yoctozepto): 'default' filter required due to eager evaluation of item content
# which will be undefined if the applicable condition is False
- uuid: "{{ rbd_secret_uuid }}" - uuid: "{{ rbd_secret_uuid }}"
result: "{{ nova_cephx_raw_key }}" result: "{{ nova_cephx_raw_key | default }}"
enabled: "{{ nova_backend == 'rbd' }}" enabled: "{{ nova_backend == 'rbd' }}"
- uuid: "{{ cinder_rbd_secret_uuid }}" - uuid: "{{ cinder_rbd_secret_uuid }}"
result: "{{ cinder_cephx_raw_key }}" result: "{{ cinder_cephx_raw_key | default }}"
enabled: "{{ cinder_backend_ceph }}" enabled: "{{ cinder_backend_ceph }}"
notify: notify:
- Restart nova-libvirt container - Restart nova-libvirt container
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment