mirror of https://github.com/ansible/ansible.git
Fix setup subset (#74022)
* fix error msg on bad subset * added test * handle more raised but not handled fact exceptionspull/74053/head
parent
c66cff444c
commit
4a82e2c486
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- setup module, 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