VMware: fix return to return a tuple instead of a bool (#45764)
fixes "'bool' object is not iterable" exception when `res` is falsey
This commit is contained in:
parent
28a074c835
commit
1f8c5905b3
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ class VMwareShellManager(PyVmomi):
|
|||
def process_exists_in_guest(self, vm, pid, creds):
|
||||
res = self.pm.ListProcessesInGuest(vm, creds, pids=[pid])
|
||||
if not res:
|
||||
return False
|
||||
return False, ''
|
||||
res = res[0]
|
||||
if res.exitCode is None:
|
||||
return True, ''
|
||||
|
|
Loading…
Reference in a new issue