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.
pull/35475/head
Ganesh Nalawade 8 years ago committed by GitHub
parent 8606bfde4f
commit bbdddffa1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,7 +62,7 @@
- assert:
that:
- "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
junos_facts:

Loading…
Cancel
Save