Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Very minor tweaks #1

Merged
merged 3 commits into from
Apr 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ install:
- pip install requests
- pip install python-coveralls
- pip install coverage
- pip install nose

# command to run tests
script:
Expand Down
7 changes: 3 additions & 4 deletions grafana_api/grafana_face.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
from .grafana_api import GrafanaAPI


Expand Down Expand Up @@ -565,14 +564,14 @@ def get_api_keys(self):
r = self.api.GET(get_api_keys_path)
return r

def create_api_key(self, json):
def create_api_key(self, json_data):
"""

:param json:
:param json_data:
:return:
"""
create_api_key_path = '/auth/keys'
r = self.api.POST(create_api_key_path, json=json)
r = self.api.POST(create_api_key_path, json=json_data)
return r

def delete_api_key(self, id):
Expand Down