Use standard if statement to check state in easy_install resource

pull/18777/head
Schlueter 10 years ago committed by Matt Clay
parent 1ddf4c2368
commit 1fc687b19d

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

Loading…
Cancel
Save