From f8e73714f6dbed49a6086b89075acf54d2a3cbba Mon Sep 17 00:00:00 2001 From: Matt Harris Date: Sun, 24 Jan 2016 01:10:47 -0800 Subject: [PATCH] If the notes don't contain JSON, add the string to the notes key of _meta --- contrib/inventory/proxmox.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/inventory/proxmox.py b/contrib/inventory/proxmox.py index 0d0ee86a4e..c0ffb0b16c 100755 --- a/contrib/inventory/proxmox.py +++ b/contrib/inventory/proxmox.py @@ -175,7 +175,10 @@ def main_list(options): metadata = json.loads(description) except TypeError: metadata = {} - # print metadata + except ValueError: + metadata = { + 'notes': description + } if 'groups' in metadata: # print metadata