Fix bug in JSONTokenApi plugin
`Response#json` is a method, not a property, in the requests library. [directxman12: removed unnecessary calls to str]
This commit is contained in:
parent
b7684e0914
commit
487db5f7c9
|
@ -79,4 +79,5 @@ class JSONTokenApi(BaseTokenAPI):
|
|||
# should go
|
||||
|
||||
def process_result(self, resp):
|
||||
return (resp.json['host'], resp.json['port'])
|
||||
resp_json = resp.json()
|
||||
return (resp_json['host'], resp_json['port'])
|
||||
|
|
Loading…
Reference in New Issue