Use standard if statement to check state in easy_install resource

This commit is contained in:
Schlueter 2015-05-21 12:16:26 -04:00 committed by Matt Clay
parent 1ddf4c2368
commit 1fc687b19d

View file

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