]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Make openstack_keys param support no acls list 2189/head
authorJohn Fulton <fulton@redhat.com>
Thu, 16 Nov 2017 16:29:59 +0000 (11:29 -0500)
committerJohn Fulton <fulton@redhat.com>
Thu, 16 Nov 2017 16:29:59 +0000 (11:29 -0500)
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

roles/ceph-mon/tasks/openstack_config.yml

index f95f03ba057e43923353f9dad0388a25585bf13b..0c5466b935c3b4d99366ffa49fe86ae03b0c4908 100644 (file)
@@ -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