fixes wrong var assignment for host attribute vars

refs: #9
This commit is contained in:
Ricardo Bartels
2020-11-21 22:25:31 +01:00
parent 8508d11c71
commit 096c1e5584

View File

@@ -1327,11 +1327,11 @@ class VMWareHandler:
# add data if present
if serial is not None:
host_data["serial"]: serial
host_data["serial"] = serial
if asset_tag is not None:
host_data["asset_tag"]: asset_tag
host_data["asset_tag"] = asset_tag
if platform is not None:
host_data["platform"]: {"name": platform}
host_data["platform"] = {"name": platform}
# iterate over hosts virtual switches, needed to enrich data on physical interfaces
host_vswitches = dict()