nginx-formula/nginx
Jonathon Anderson 6cb486dbd2
fix(snippets): ignore servers or snippets when undefined
nginx.servers_config wants a lightened copy of the nginx map
to render as json; but, when it was trying to remove the
servers and snippets keys from the map it assumed their presence,
causing a KeyError if they were not present by its use of .pop().

While wrapping these in an "if" clause would likely be more
correct, along with replacing .pop() with del (if jinja even
supports that) the simplest change here is to just specify a
default value for .pop(), which obviates the KeyError.

Fixes #274
2021-06-14 16:25:23 +01:00
..
_mapdata test: standardise use of share suite & _mapdata state [skip ci] 2021-03-23 21:30:37 +00:00
files/default feat(tofs): first implemetation + tplroot 2019-06-04 08:57:21 +11:00
ng fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
certificates.sls fix(certificates.sls): prepare certificates_path dir separately 2019-11-22 18:45:51 +00:00
common.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
config.sls feat(servers_config): add require statement to manage dependencies 2021-04-28 09:37:34 -03:00
deprecated.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
init.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
libtofs.jinja style(libtofs.jinja): use Black-inspired Jinja formatting [skip ci] 2020-07-19 23:27:21 +01:00
luajit2.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
map.jinja fix(freebsd): add openssl pkg and update all default tests 2021-04-03 13:04:05 +01:00
openresty.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
package.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
passenger.sls fix(passenger): various fixes 2021-03-11 13:35:24 -03:00
pkg.sls fix(passenger): various fixes 2021-03-11 13:35:24 -03:00
servers_config.sls fix(snippets): ignore servers or snippets when undefined 2021-06-14 16:25:23 +01:00
servers.sls fix(servers_config): remove service depedency 2021-03-26 21:40:33 +01:00
service.sls fix(servers): wrong conditional specification 2021-05-12 12:09:29 -03:00
snippets.sls fix(snippets): ignore servers or snippets when undefined 2021-06-14 16:25:23 +01:00
source.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
src.sls refactor: replace old nginx with nginx.ng 2019-05-12 17:13:17 +01:00
sysvinit.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
upstart.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00
users.sls fix: prevent running of states deprecated in v1.0.0 2019-05-13 13:06:04 +01:00