mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
[PR #5751/2670215c backport][stable-5] Fix gem.py, hang on uninstall specific gem version (#5779)
Fix gem.py, hang on uninstall specific gem version (#5751)
* Update gem.py
move 'cmd.append('--executable')' to all uninstalls rather than only all versions
* Create 5751-gem-fix-uninstall-hang
* Rename 5751-gem-fix-uninstall-hang to 5751-gem-fix-uninstall-hang.yml
(cherry picked from commit 2670215c8a
)
Co-authored-by: rietvelde <99407273+rietvelde@users.noreply.github.com>
This commit is contained in:
parent
8d94d16eec
commit
2a6f91b4e4
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/5751-gem-fix-uninstall-hang.yml
Normal file
2
changelogs/fragments/5751-gem-fix-uninstall-hang.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- gem - fix hang due to interactive prompt for confirmation on specific version uninstall (https://github.com/ansible-collections/community.general/pull/5751).
|
|
@ -235,7 +235,7 @@ def uninstall(module):
|
|||
cmd.extend(['--version', module.params['version']])
|
||||
else:
|
||||
cmd.append('--all')
|
||||
cmd.append('--executable')
|
||||
cmd.append('--executable')
|
||||
cmd.append(module.params['name'])
|
||||
module.run_command(cmd, environ_update=environ, check_rc=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue