Use standard if statement to check state in easy_install resource
This commit is contained in:
parent
1ddf4c2368
commit
1fc687b19d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue