Implement version 2 payload with more hw info
Bumping the payload version to two, and adding CPU, Memory, and Block Device information to the inventory. Added dependency on psutil for available memory and cpu_count. Requirements line copied from global requirements Change-Id: Ia39c85c91b1d60468667787a7978020084dc6c2a
This commit is contained in:
ironic_python_agent
requirements.txt@ -30,7 +30,7 @@ LOG = log.getLogger(__name__)
|
||||
|
||||
class APIClient(object):
|
||||
api_version = 'v1'
|
||||
payload_version = '1'
|
||||
payload_version = '2'
|
||||
|
||||
def __init__(self, api_url):
|
||||
self.api_url = api_url.rstrip('/')
|
||||
|
Reference in New Issue
Block a user