mirror of https://github.com/ansible/ansible.git
Fix VyOS check mode (#35977)
* Revert "commented out check tests (#35788)"
This reverts commit 3df2561405.
* `discard_changes()` now uses `exit discard`
instead of just `discard`. Also a slight tweak to avoid a second `exit` after
`exit discard`
pull/36016/head
parent
d5ae63c0ea
commit
6cdf91fd35
@ -1,13 +1,13 @@
|
|||||||
# hit check conditional in module_utils.network.vyos -> load_config()
|
# hit check conditional in module_utils.network.vyos -> load_config()
|
||||||
# - name: configure simple config command
|
- name: configure simple config command
|
||||||
# vyos_config:
|
vyos_config:
|
||||||
# lines: set system host-name check-test
|
lines: set system host-name check-test
|
||||||
# check_mode: yes
|
check_mode: yes
|
||||||
#
|
|
||||||
# - name: get host name
|
- name: get host name
|
||||||
# vyos_command:
|
vyos_command:
|
||||||
# commands: show host name
|
commands: show host name
|
||||||
# register: result
|
register: result
|
||||||
#
|
|
||||||
# - assert:
|
- assert:
|
||||||
# that: '"check-test" not in result.stdout'
|
that: '"check-test" not in result.stdout'
|
||||||
|
|||||||
Loading…
Reference in New Issue