update overlord client heartbeat method

This commit is contained in:
Russell Haering 2014-01-28 11:25:20 -08:00
parent 57939654e9
commit 430e4c3534

View File

@ -47,13 +47,11 @@ class APIClient(object):
headers=request_headers,
data=data)
def heartbeat(self, mac_addr, url, mode, version):
path = '/{api_version}/agents/{mac_addr}'.format(
api_version=self.api_version,
mac_addr=mac_addr)
def heartbeat(self, hardware_info, mode, version):
path = '/{api_version}/agents'.format(api_version=self.api_version)
data = {
'url': url,
'hardware': hardware_info,
'mode': mode,
'version': version,
}