Skip to content

Commit 64f1c3a

Browse files
committed
fixes issue with detection of running guest tools #326 #443
1 parent 8f9fa01 commit 64f1c3a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

module/sources/common/source_base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,8 @@ def add_update_interface(self, interface_object, device_object, interface_data,
351351

352352
# skip handling of IPs for VMs with not installed/running guest tools
353353
skip_ip_handling = False
354-
if type(device_object) == NBVM and grab(vmware_object,'guest.toolsStatus') != "toolsOk":
355-
guest_tool_satus = str(grab(vmware_object,'guest.toolsStatus')).replace("tools", "")
356-
log.debug(f"VM '{device_object.name}' guest tool status is '{guest_tool_satus}', skipping IP handling")
354+
if type(device_object) == NBVM and grab(vmware_object,'guest.toolsRunningStatus') != "guestToolsRunning":
355+
log.debug(f"VM '{device_object.name}' guest tool status is 'NotRunning', skipping IP handling")
357356
skip_ip_handling = True
358357

359358
ip_address_objects = list()

0 commit comments

Comments
 (0)