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

Commit

Permalink
Merge pull request #1 from tescalada/master
Browse files Browse the repository at this point in the history
minor tweaks
  • Loading branch information
m0nhawk authored Apr 8, 2018
2 parents 499c976 + bfed50b commit 7a0438f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 7a0438f

Please sign in to comment.