1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixes Making sure that the key value returns a string to avoid concatenation issues (#37445)

This commit is contained in:
John Roach 2018-04-05 11:47:55 -04:00 committed by ansibot
parent 8673e1e661
commit 3f2c90914e

View file

@ -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)