From 1ddf4c236847509abe056c4ecea0241531a6c1a2 Mon Sep 17 00:00:00 2001 From: Schlueter Date: Thu, 21 May 2015 12:04:13 -0400 Subject: [PATCH] Correct pass by object reference issue --- lib/ansible/modules/packaging/language/easy_install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/language/easy_install.py b/lib/ansible/modules/packaging/language/easy_install.py index b95cb1bb08e..6ae42b65967 100644 --- a/lib/ansible/modules/packaging/language/easy_install.py +++ b/lib/ansible/modules/packaging/language/easy_install.py @@ -90,7 +90,7 @@ EXAMPLES = ''' ''' def _is_package_installed(module, name, easy_install, executable_arguments): - executable_arguments.append('--dry-run') + executable_arguments = executable_arguments + ['--dry-run'] cmd = '%s %s %s' % (easy_install, ' '.join(executable_arguments), name) rc, status_stdout, status_stderr = module.run_command(cmd) return not ('Reading' in status_stdout or 'Downloading' in status_stdout)