mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Do not consider an empty version string as a version (#41044)
When using an empty string as the version argument, the module would before attempt to run something akin to: pip install module=="" This changes the behavior to: pip install module Fixes #41043
This commit is contained in:
parent
63d993e07f
commit
828e33f419
2 changed files with 15 additions and 1 deletions
|
@ -256,3 +256,17 @@
|
|||
assert:
|
||||
that:
|
||||
- not pip_install_empty.changed
|
||||
|
||||
# https://github.com/ansible/ansible/issues/41043
|
||||
- name: do not consider an empty string as a version
|
||||
pip:
|
||||
name: q
|
||||
state: present
|
||||
version: ""
|
||||
virtualenv: "{{ output_dir }}/pipenv"
|
||||
register: pip_install_empty_version_string
|
||||
|
||||
- name: ensure that task installation did not fail
|
||||
assert:
|
||||
that:
|
||||
- pip_install_empty_version_string is successful
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue