mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-02 08:43:10 +00:00
Use standard if statement to check state in easy_install resource
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user