I want to write a simple python 2.7 jinja2 writer that writes out text config files for WL AccessPoints
I have the following structure in my directory ~/Documents/PyCharmProjects:
config-data.csv
mk-wl-ap-configs.py
shadow.jinja
network.jinja
wireless,jinja
and I ultimatley I want it to write the jinja2 rendered output to subdirs named after the AccessPoints
ap1:
shadow
network
wireless
ap2:
shadow
network
wireless
OK, now I got a pretty good pretty printer view into my loops. But I can't for the life of me, catch the value of the first key in the current loop of the dictionaory being processed?
so my pprint lines 34 44 54 all fail the same way. but how can I get the value of 'Ap_Name' of the current line in the current dictionary loop into a variabel? So I can then create the right subdirectory for placing the rendered jinja output into.