Hello, given the following dict i want to access the ipaddr value within a 
jinja2 template


network:
   nics:
      '0':
         ipaddr: 10.251.66.242
         netmask: 255.255.255.0


none of the following works:


{% data.network.nics.0.ipaddr %}

{% data.network.nics.'0'.ipaddr %}

{% data.network.nics[0].ipaddr %}


If I change -'0'- to -A- in my datasource it works with:

{% data.network.nics.A.ipaddr %}


Any Ideas ?

kind regrads 


-- 
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/9f5fffe9-092b-4401-9e8a-efd75dfbaef8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to