-Fixes JSON parsing(use JSON object instead of string) for facts modules. (#31818)

This commit is contained in:
Kedar K 2017-10-23 17:48:52 +05:30 committed by GitHub
commit 465fe5802b
4 changed files with 204 additions and 3 deletions

View file

@ -86,7 +86,7 @@
- assert:
that:
- "result.changed == false"
- "'\"data\" : \"{{ inventory_hostname_short }}\"' in result['ansible_facts']['ansible_net_config']"
- "'{{ inventory_hostname_short }}' == '{{ result['ansible_facts']['ansible_net_config']['configuration'][0]['system'][0]['host-name'][0]['data'] }}' "
- name: Collect config facts from device in text format
junos_facts: