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:
Jay Faulkner
2014-04-09 17:09:51 -07:00
parent bbe50749fc
commit 1384d79d2c
5 changed files with 206 additions and 48 deletions

@ -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('/')