Fix eos_eapi integration test failure (#40132)

This commit is contained in:
Ganesh Nalawade 2018-05-15 10:55:14 +05:30 committed by GitHub
parent 9c0825a4cf
commit dda351ca6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,14 @@
- debug: msg="START CLI/BADTRANSPORT.YAML" - debug: msg="START CLI/BADTRANSPORT.YAML"
- name: Expect transport other than cli to fail - block:
eos_eapi: - name: Expect transport other than cli to fail
provider: "{{ eapi }}" eos_eapi:
register: eos_eapi_output provider: "{{ eapi }}"
connection: local register: eos_eapi_output
ignore_errors: yes ignore_errors: yes
- assert: - assert:
that: eos_eapi_output.failed == true that: eos_eapi_output.failed == true
when: "ansible_connection == 'local'"
- debug: msg="START CLI/BADTRANSPORT.YAML" - debug: msg="START CLI/BADTRANSPORT.YAML"