mirror of https://github.com/ansible/ansible.git
* fix error msg on bad subset
* added test
* handle more raised but not handled fact exceptions
(cherry picked from commit 4a82e2c486
)
* Update fix_setup_bad_subset.yml
Co-authored-by: Rick Elrod <rick@elrod.me>
pull/74169/head
parent
adae63e053
commit
7683dfb727
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- setup - fix error handling on bad subset given.
|
@ -0,0 +1,13 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: bad subset used
|
||||
setup: gather_subset=nonsense
|
||||
register: bad_sub
|
||||
ignore_errors: true
|
||||
|
||||
- name: verify we fail the right way
|
||||
assert:
|
||||
that:
|
||||
- bad_sub is failed
|
||||
- "'MODULE FAILURE' not in bad_sub['msg']"
|
Loading…
Reference in New Issue