From 1fc687b19d172dd98e6abae75dd03e1bb2dccd9d Mon Sep 17 00:00:00 2001 From: Schlueter Date: Thu, 21 May 2015 12:16:26 -0400 Subject: [PATCH] Use standard if statement to check state in easy_install resource --- lib/ansible/modules/packaging/language/easy_install.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/language/easy_install.py b/lib/ansible/modules/packaging/language/easy_install.py index 6ae42b65967..635f1b64f3f 100644 --- a/lib/ansible/modules/packaging/language/easy_install.py +++ b/lib/ansible/modules/packaging/language/easy_install.py @@ -143,7 +143,8 @@ def main(): site_packages = module.params['virtualenv_site_packages'] virtualenv_command = module.params['virtualenv_command'] executable_arguments = [] - module.params['state'] is 'latest' and executable_arguments.append('--upgrade') + if module.params['state'] == 'latest': + executable_arguments.append('--upgrade') rc = 0 err = ''