]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
facts: fix bug in grafana_server_addr fact setting
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 24 Jun 2019 20:30:23 +0000 (22:30 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 26 Jun 2019 08:49:30 +0000 (10:49 +0200)
commit366b309c12adfcef7dba3548ad3f05000148e867
tree6a0a4b91906aa44ee70e08f845adc4e50488cb49
parent45041f52fda35dd368824b485c50117866c514c2
facts: fix bug in grafana_server_addr fact setting

If no grafana-server group is defined while an mgr group is, that task
will fail because `hostvars[groups[grafana_server_group_name][0]` can't
return anything since `groups['grafana-server']` will be a non existing
key.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-facts/tasks/facts.yml