'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'configuration' #31489
Labels
affects_2.4
This issue/PR affects Ansible v2.4
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
networking
Network category
support:network
This issue/PR relates to code supported by the Ansible Network Team.
Milestone
ISSUE TYPE
COMPONENT NAME
junos_facts
ANSIBLE VERSION
CONFIGURATION
DEFAULT_CALLBACK_PLUGIN_PATH(/etc/ansible/ansible.cfg) = [u'/home/joe/ansible/playbooks/callback_plugins']
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/home/joe/ansible/hosts']
DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /home/joe/ansible/ansible.log
DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = [u'/home/joe/ansible/library']
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
PERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 30
OS / ENVIRONMENT
Ubuntu 16.04
SUMMARY
When navigated through output of junos_facts config, which is json output, as soon as I navigate to ansible_facts.ansible_net_config.configuration I get the error,
'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'configuration'
I have seen similar errors with ansible.vars.unsafe_proxy but nothing matching my error.
STEPS TO REPRODUCE
run the playbook I have attached on Juniper SRX and error will appear. I have tested going into configuration as well as configuration[0].
EXPECTED RESULTS
I expect to navigate to configuration, which is a list. I want to enter the list and navigate through configuration information to get results and do stuff with that information.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: