Use POST instead of PUT when adding a new datasource

pull/5/head
Guillaume Thouvenin 7 years ago
parent 667880a0c8
commit 5bbb9f23e0
  1. 2
      _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),

Loading…
Cancel
Save