From: John Fulton Date: Thu, 16 Nov 2017 16:29:59 +0000 (-0500) Subject: Make openstack_keys param support no acls list X-Git-Tag: beta-3.1.0~49^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d73f751b6372cbd60ddd6a24ae53232307b32fac;p=ceph-ansible.git 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 --- 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