summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Roach <JohnRoach@users.noreply.github.com>2018-04-05 11:47:55 -0400
committeransibot <ansibot@users.noreply.github.com>2018-04-05 11:47:55 -0400
commit3f2c90914ec57316c118b689343ec578bd03762e (patch)
tree8338d6b326c422ee84dddeebfecc5f102096e8d2
parent8673e1e6610a501e111a6d2b09eb4e0f5f6b8c7d (diff)
downloadansible-3f2c90914ec57316c118b689343ec578bd03762e.tar.gz
Fixes Making sure that the key value returns a string to avoid concatenation issues (#37445)
-rwxr-xr-xcontrib/inventory/vmware_inventory.py2
1 files changed, 1 insertions, 1 deletions
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)