From bbdddffa1e91a6758314390b596433b263196192 Mon Sep 17 00:00:00 2001
From: Ganesh Nalawade <ganesh634@gmail.com>
Date: Mon, 29 Jan 2018 23:35:43 +0530
Subject: [PATCH] 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.
---
 test/integration/targets/junos_facts/tests/netconf/facts.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/integration/targets/junos_facts/tests/netconf/facts.yaml b/test/integration/targets/junos_facts/tests/netconf/facts.yaml
index c315167bdf3..15391c1d8ca 100644
--- a/test/integration/targets/junos_facts/tests/netconf/facts.yaml
+++ b/test/integration/targets/junos_facts/tests/netconf/facts.yaml
@@ -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: