]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
BugFix: Fix #1374 1396/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 23 Mar 2017 15:00:02 +0000 (16:00 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 27 Mar 2017 14:24:07 +0000 (16:24 +0200)
commita99e04a9b7bb1f6fec21f6f6cabc4c51de15c657
tree69aee9ad897e7ed1e3814700c3859e067a7a464a
parentbbe6f752e828b94fcfa25ad590ceddd420f8de77
BugFix: Fix #1374

If a group of hosts is empty, (for instance 'mdss', in case of a
deployment without any mds node), the playbook will fails when trying
to restart service with `"'dict object' has no attribute u'XXX'"` error.

The idea here is to force the `with_items` statements in all included handler tasks
to get at least an empty array.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-common/handlers/restart-mds.yml
roles/ceph-common/handlers/restart-mon.yml
roles/ceph-common/handlers/restart-osd.yml
roles/ceph-common/handlers/restart-rgw.yml