On 05.03.2018 09:31, Marcos Georgopoulos wrote:
On Monday, March 5, 2018 at 7:12:13 PM UTC+11, Varun Chopra wrote:

You can access the first element using
result.ansible_facts.napalm_environment.cpu[0].%usage or so.

On Monday, March 5, 2018 at 1:17:28 PM UTC+5:30, Marcos Georgopoulos wrote:


Thanks I had tried that but it does not work. See below.

This should work

result.ansible_facts.napalm_environment.cpu['0']['%usage']

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6cc2775822352e339265d73a8385d51c%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to