Module: junos_get_facts
Host: Any host running a private build.
Description:
On using the module junos_get_facts on a Juniper device running on a private build.
Suppose the device is running junos image:
14.2-20140307
Yaml Code:
name: Junos OS version
hosts: all
connection: local
gather_facts: no
tasks:
include: task_check_nc
name: Get Junos Facts
junos_get_facts:
host={{ inventory_hostname }}
register: junos
Error:
File "/usr/local/lib/python2.7/dist-packages/jnpr/junos/facts/swver.py", line 111, in software_version
pkginfo = x_swver.xpath('.//package-information[name = "junos"]/comment')[0].text
IndexError: list index out of range
Currenty the module works fine on release buids.
Customer could be using private builds and support needed for this build too.
Module: junos_get_facts Host: Any host running a private build.
Description: On using the module junos_get_facts on a Juniper device running on a private build. Suppose the device is running junos image: 14.2-20140307
Yaml Code:
Error: File "/usr/local/lib/python2.7/dist-packages/jnpr/junos/facts/swver.py", line 111, in software_version pkginfo = x_swver.xpath('.//package-information[name = "junos"]/comment')[0].text
IndexError: list index out of range
Currenty the module works fine on release buids. Customer could be using private builds and support needed for this build too.