From 20f2328d05a6972a04685f8b633673ab155e4d67 Mon Sep 17 00:00:00 2001 From: John Fulton Date: Thu, 16 Nov 2017 11:29:59 -0500 Subject: [PATCH] Make openstack_keys param support no acls list A recent change [1] required that the openstack_keys param always containe an acls list. However, it's possible it might not contain that list. Thus, this param sets a default for that list to be empty if it is not in the structure as defined by the user. [1] d65cbaa53952269ec9a2e76fca8203ce7ad22c2b (cherry picked from commit d73f751b6372cbd60ddd6a24ae53232307b32fac) --- roles/ceph-mon/tasks/openstack_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-mon/tasks/openstack_config.yml b/roles/ceph-mon/tasks/openstack_config.yml index f95f03ba0..0c5466b93 100644 --- a/roles/ceph-mon/tasks/openstack_config.yml +++ b/roles/ceph-mon/tasks/openstack_config.yml @@ -69,6 +69,6 @@ - "{{ openstack_keys }}" delegate_to: "{{ item.0 }}" when: - - item.1.acls | length > 0 + - item.1.get('acls', []) | length > 0 - openstack_config - cephx -- 2.39.5