kolla-ansible/ansible/roles/grafana
Doug Szumski dafe39dfb6 Fix retry mechanism
If the wrong status code is returned, ansible sets failed: true.
This means that a retry is never attempted.

Use .get('status') to work around the possibility that a status
may not be returned in some corner cases. For example:

TASK [grafana : Wait for grafana application ready]
***************** fatal: [some_remote_node]: FAILED! =>
{"failed": true, "msg": "The conditional check 'result.status
== 200' failed. The error was: error while evaluating
conditional (result.status == 200): 'dict object' has no
attribute 'status'"}

Change-Id: I14207d1a9e994fa25c1c061025fff5b64a71d690
Closes-Bug: #1742501
2018-01-24 16:01:17 +00:00
..
defaults Implement external MariaDB and pre-configured Databases support 2018-01-23 13:07:40 +00:00
handlers Support customizing grafana home dashboard 2017-07-24 13:11:31 +08:00
meta Added grafana role 2016-09-14 09:36:34 +00:00
tasks Fix retry mechanism 2018-01-24 16:01:17 +00:00
templates Support customizing grafana home dashboard 2017-07-24 13:11:31 +08:00