Correct URL for Grafana API

This commit is contained in:
Jonathan Lange 2016-12-14 10:43:18 +00:00
parent 1cd5e11b43
commit b447c507a1

View File

@ -59,7 +59,7 @@ class GrafanaAPI(object):
def update_datasource(self, data_source): def update_datasource(self, data_source):
return self._get_session().post( return self._get_session().post(
'/'.join([self.base_url, 'datasource']), '/'.join([self.base_url, 'datasources']),
json=data_source.to_json_dict()) json=data_source.to_json_dict())