From 3f2c90914ec57316c118b689343ec578bd03762e Mon Sep 17 00:00:00 2001 From: John Roach Date: Thu, 5 Apr 2018 11:47:55 -0400 Subject: [PATCH] Fixes Making sure that the key value returns a string to avoid concatenation issues (#37445) --- contrib/inventory/vmware_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/inventory/vmware_inventory.py b/contrib/inventory/vmware_inventory.py index 997f53dcaa..96ec4f6736 100755 --- a/contrib/inventory/vmware_inventory.py +++ b/contrib/inventory/vmware_inventory.py @@ -491,7 +491,7 @@ class VMWareInventory(object): keylist = map(lambda x: x.strip(), tv['value'].split(',')) for kl in keylist: try: - newkey = self.config.get('vmware', 'custom_field_group_prefix') + field_name + '_' + kl + newkey = self.config.get('vmware', 'custom_field_group_prefix') + str(field_name) + '_' + kl newkey = newkey.strip() except Exception as e: self.debugl(e)