"""Waits for the VMWare tools to be running in the guest. Or for the
timeout in seconds to expire. If timed out a VIException is thrown"""
timeout = abs(int(timeout))
- start_time = time.
+ start_time = time.()
cur_state = self.get_tools_status()
if cur_state in [ToolsStatus.RUNNING, ToolsStatus.RUNNING_OLD]:
- if (time.
clock() - start_time) > timeout:
+ if (time.() - start_time) > timeout:
"Timed out waiting for VMware Tools to be ready.",