diff options
author | John Roach <JohnRoach@users.noreply.github.com> | 2018-04-05 11:47:55 -0400 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2018-04-05 11:47:55 -0400 |
commit | 3f2c90914ec57316c118b689343ec578bd03762e (patch) | |
tree | 8338d6b326c422ee84dddeebfecc5f102096e8d2 | |
parent | 8673e1e6610a501e111a6d2b09eb4e0f5f6b8c7d (diff) | |
download | ansible-3f2c90914ec57316c118b689343ec578bd03762e.tar.gz |
Fixes Making sure that the key value returns a string to avoid concatenation issues (#37445)
-rwxr-xr-x | contrib/inventory/vmware_inventory.py | 2 |
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) |