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
@zahlman from Freenet IRC solved that one for me. ;-) all it took was putting the csv.DictReader output into a list, (see
"mk-wl-ap-configs_v5.py"
above) so I can iterate over it again and again. The way it was the dictionary was consumed after first run through anbd the 'network' and 'wireless' renderer had no config-data to render with. So it did actually run through three times, jsut didn;t render anything after first run