From b6273e91cfbcf3f9c9ab849b6803c6a8a3aa7c3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20REY?= Date: Mon, 10 Jun 2019 16:32:45 +0200 Subject: [PATCH] Fix deprecation warning message from grafana_annotations The Display class has no `info` attribute/method. The use of the method was raising an Exception in task_queue_manager and displayed an unappropriate deprecation warning. --- lib/ansible/plugins/callback/grafana_annotations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/callback/grafana_annotations.py b/lib/ansible/plugins/callback/grafana_annotations.py index 39affd6bc97..4f028acf241 100644 --- a/lib/ansible/plugins/callback/grafana_annotations.py +++ b/lib/ansible/plugins/callback/grafana_annotations.py @@ -193,7 +193,7 @@ class CallbackModule(CallbackBase): self._display.warning('Grafana URL was not provided. The ' 'Grafana URL can be provided using ' 'the `GRAFANA_URL` environment variable.') - self._display.info('Grafana URL: %s' % self.grafana_url) + self._display.debug('Grafana URL: %s' % self.grafana_url) def v2_playbook_on_start(self, playbook): self.playbook = playbook._file_name