Use POST instead of PUT when adding a new datasource
This commit is contained in:
parent
667880a0c8
commit
5bbb9f23e0
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def present(name,
|
||||||
timeout=profile.get('grafana_timeout', 3),
|
timeout=profile.get('grafana_timeout', 3),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
requests.put(
|
requests.post(
|
||||||
'{0}/api/datasources'.format(profile['grafana_url']),
|
'{0}/api/datasources'.format(profile['grafana_url']),
|
||||||
data,
|
data,
|
||||||
auth=_get_auth(profile),
|
auth=_get_auth(profile),
|
||||||
|
|
Loading…
Reference in a new issue