(cherry picked from commit dda351ca6c
)
This commit is contained in:
parent
920c9e447b
commit
d00b63e103
1 changed files with 9 additions and 8 deletions
|
@ -1,13 +1,14 @@
|
|||
- debug: msg="START CLI/BADTRANSPORT.YAML"
|
||||
|
||||
- name: Expect transport other than cli to fail
|
||||
eos_eapi:
|
||||
provider: "{{ eapi }}"
|
||||
register: eos_eapi_output
|
||||
connection: local
|
||||
ignore_errors: yes
|
||||
- block:
|
||||
- name: Expect transport other than cli to fail
|
||||
eos_eapi:
|
||||
provider: "{{ eapi }}"
|
||||
register: eos_eapi_output
|
||||
ignore_errors: yes
|
||||
|
||||
- assert:
|
||||
that: eos_eapi_output.failed == true
|
||||
- assert:
|
||||
that: eos_eapi_output.failed == true
|
||||
when: "ansible_connection == 'local'"
|
||||
|
||||
- debug: msg="START CLI/BADTRANSPORT.YAML"
|
||||
|
|
Loading…
Reference in a new issue