1
0
Fork 0
mirror of synced 2024-11-22 08:55:35 -05:00

Use POST instead of PUT when adding a new datasource

This commit is contained in:
Guillaume Thouvenin 2016-11-02 15:48:12 +01:00
parent 667880a0c8
commit 5bbb9f23e0

View file

@ -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),