From 9696b6dfa57e5d6f396b4e152ffcf5cc756ffca1 Mon Sep 17 00:00:00 2001 From: twangboy Date: Fri, 18 Nov 2016 10:26:44 -0700 Subject: [PATCH] Use keyword args instead of relying on ordering --- salt/states/chocolatey.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/salt/states/chocolatey.py b/salt/states/chocolatey.py index 4b07f9d377..c9009f9ff9 100644 --- a/salt/states/chocolatey.py +++ b/salt/states/chocolatey.py @@ -102,8 +102,10 @@ def installed(name, version=None, source=None, force=False, pre_versions=False, # Install the package ret['changes'] = {name: __salt__['chocolatey.install']( - name, version, source, force, pre_versions, install_args, override_args, - force_x86, package_args)} + name=name, version=version, source=source, force=force, + pre_versions=pre_versions, install_args=install_args, + override_args=override_args, force_x86=force_x86, + package_args=package_args)} if 'Running chocolatey failed' not in ret['changes']: ret['result'] = True