Use standard if statement to check state in easy_install resource
This commit is contained in:
parent
9b6a741615
commit
3bae8bda10
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…
Add table
Reference in a new issue