|
|
|
@ -47,7 +47,6 @@ class VMware(BaseManager):
|
|
|
|
|
def __init__(self):
|
|
|
|
|
|
|
|
|
|
super().__init__()
|
|
|
|
|
self._execute_lock = asyncio.Lock()
|
|
|
|
|
self._vmware_inventory_lock = asyncio.Lock()
|
|
|
|
|
self._vmrun_path = None
|
|
|
|
|
self._host_type = None
|
|
|
|
@ -371,7 +370,6 @@ class VMware(BaseManager):
|
|
|
|
|
|
|
|
|
|
@asyncio.coroutine
|
|
|
|
|
def _execute(self, subcommand, args, timeout=120):
|
|
|
|
|
with (yield from self._execute_lock):
|
|
|
|
|
if self.host_type is None:
|
|
|
|
|
yield from self.check_vmware_version()
|
|
|
|
|
|
|
|
|
@ -413,7 +411,6 @@ class VMware(BaseManager):
|
|
|
|
|
:param required_version: required vmrun version number
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
with (yield from self._execute_lock):
|
|
|
|
|
vmrun_path = self.vmrun_path
|
|
|
|
|
if not vmrun_path:
|
|
|
|
|
vmrun_path = self.find_vmrun()
|
|
|
|
|