Merge pull request #51146 from terminalmage/fix-vsphere-tuple-issue

Fix invalid assignment in vsphere module
This commit is contained in:
Daniel Wozniak 2019-01-12 14:44:32 -07:00 committed by GitHub
commit 5e3732669b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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