mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #33698 from Unity-Technologies/vsphere-fixes
Vsphere fixes
This commit is contained in:
commit
a3202f1ad6
1 changed files with 2 additions and 1 deletions
|
@ -187,7 +187,8 @@ def get_service_instance(host, username, password, protocol=None, port=None):
|
|||
service_instance = GetSi()
|
||||
if service_instance:
|
||||
if service_instance._GetStub().host == ':'.join([host, str(port)]):
|
||||
service_instance._GetStub().GetConnection()
|
||||
if salt.utils.is_proxy():
|
||||
service_instance._GetStub().GetConnection()
|
||||
return service_instance
|
||||
Disconnect(service_instance)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue