From 5bbb9f23e08e267ff83e007bb753e767d98ab692 Mon Sep 17 00:00:00 2001 From: Guillaume Thouvenin Date: Wed, 2 Nov 2016 15:48:12 +0100 Subject: [PATCH] Use POST instead of PUT when adding a new datasource --- _states/grafana3_datasource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_states/grafana3_datasource.py b/_states/grafana3_datasource.py index dbb3312..7d440ae 100644 --- a/_states/grafana3_datasource.py +++ b/_states/grafana3_datasource.py @@ -135,7 +135,7 @@ def present(name, timeout=profile.get('grafana_timeout', 3), ) else: - requests.put( + requests.post( '{0}/api/datasources'.format(profile['grafana_url']), data, auth=_get_auth(profile),