mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-24 04:54:00 -07:00
Improve error condition handling for dnf module (#44770)
- Fix comma separated list handling for package names - Fix error message for unavailable/unknown package install attempt - Fix pkg install result output generation Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
15886b1d56
commit
1e3b927a73
3 changed files with 47 additions and 10 deletions
|
|
@ -461,7 +461,7 @@
|
|||
that:
|
||||
- "dnf_result is failed"
|
||||
- "'non-existent-rpm' in dnf_result['failures'][0]"
|
||||
- "'no package matched' in dnf_result['failures'][0]"
|
||||
- "'No package non-existent-rpm available' in dnf_result['failures'][0]"
|
||||
- "'Failed to install some of the specified packages' in dnf_result['msg']"
|
||||
|
||||
- name: use latest to install httpd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue