1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix junos_facts integration test failure (#35469)

Hostname is not always configured on remote host
Instead add a assert statement to check if netconf
is configured for junos_facts.
This commit is contained in:
Ganesh Nalawade 2018-01-29 23:35:43 +05:30 committed by GitHub
parent 8606bfde4f
commit bbdddffa1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@
- assert: - assert:
that: that:
- "result.changed == false" - "result.changed == false"
- "'set system host-name {{ inventory_hostname_short }}' in result['ansible_facts']['ansible_net_config']" - "'set system services netconf ssh' in result['ansible_facts']['ansible_net_config']"
- name: Collect config facts from device in xml format - name: Collect config facts from device in xml format
junos_facts: junos_facts: