mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #51146 from terminalmage/fix-vsphere-tuple-issue
Fix invalid assignment in vsphere module
This commit is contained in:
commit
5e3732669b
1 changed files with 3 additions and 0 deletions
|
@ -357,6 +357,9 @@ def gets_service_instance_via_proxy(fn):
|
|||
local_service_instance = \
|
||||
salt.utils.vmware.get_service_instance(
|
||||
*connection_details)
|
||||
# Tuples are immutable, so if we want to change what
|
||||
# was passed in, we need to first convert to a list.
|
||||
args = list(args)
|
||||
args[idx] = local_service_instance
|
||||
else:
|
||||
# case 2: Not enough positional parameters so
|
||||
|
|
Loading…
Add table
Reference in a new issue