]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
roles: ceph-defaults: Check if 'rgw' attribute exists for rgw_hostname
authorMarkos Chandras <mchandras@suse.de>
Wed, 15 Aug 2018 06:55:49 +0000 (09:55 +0300)
committerSébastien Han <seb@redhat.com>
Mon, 20 Aug 2018 09:37:45 +0000 (11:37 +0200)
commit126e2e3f92475a17f9a04e1e792ee6eb69fbfab0
treee4e232d8bbfb734900db9bf095e5aadabced123c
parent37e50114dedf6a7aec0f1b2e1b9d2dd997a11d8e
roles: ceph-defaults: Check if 'rgw' attribute exists for rgw_hostname

If there are no services on the cluster, then the 'rgw' could be missing
and the task is failing with the following problem:

msg": "The task includes an option with an undefined variable.
The error was: 'dict object' has no attribute 'rgw'

We fix this by checking the existence of the 'rgw' attribute. If it's
missing, we skip the task since the role already contains code to set
a good default rgw_hostname.

Signed-off-by: Markos Chandras <mchandras@suse.de>
roles/ceph-defaults/tasks/facts.yml