actually use the specified method in the api client
This commit is contained in:
parent
5ade601672
commit
5e71d8ceb8
@ -41,9 +41,10 @@ class APIClient(object):
|
||||
'Accept': 'application/json',
|
||||
}
|
||||
|
||||
return self.session.put(request_url,
|
||||
headers=request_headers,
|
||||
data=data)
|
||||
return self.session.send(method,
|
||||
request_url,
|
||||
headers=request_headers,
|
||||
data=data)
|
||||
|
||||
def heartbeat(self, mac_addr, url, mode, version):
|
||||
path = '/{api_version}/agents/{mac_addr}'.format(
|
||||
|
Loading…
x
Reference in New Issue
Block a user