summaryrefslogtreecommitdiff
path: root/op-mode-definitions/containers.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-23 11:16:13 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-23 11:16:13 +0200
commit27095042decb58fb53766c190bb60adcb69805ef (patch)
treed68929d719833278beb783ea237f29803091a2dd /op-mode-definitions/containers.xml.in
parente99cdf40c72dec8b9019eca728aaad0f82c6030b (diff)
downloadvyos-1x-27095042decb58fb53766c190bb60adcb69805ef.tar.gz
vyos-1x-27095042decb58fb53766c190bb60adcb69805ef.zip
containers: T2216: add missing verify() step on environment variables
A environment variable MUST always have a value specified. Non existing values will cause the following error: Traceback (most recent call last): File "/usr/libexec/vyos/conf_mode/containers.py", line 269, in <module> apply(c) File "/usr/libexec/vyos/conf_mode/containers.py", line 224, in apply env_opt += " -e ".join(f"{k}={v['value']}" for k, v in container_config['environment'].items()) File "/usr/libexec/vyos/conf_mode/containers.py", line 224, in <genexpr> env_opt += " -e ".join(f"{k}={v['value']}" for k, v in container_config['environment'].items()) KeyError: 'value'
Diffstat (limited to 'op-mode-definitions/containers.xml.in')
0 files changed, 0 insertions, 0 deletions