diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-23 11:16:13 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-23 11:16:13 +0200 |
commit | 27095042decb58fb53766c190bb60adcb69805ef (patch) | |
tree | d68929d719833278beb783ea237f29803091a2dd /data/templates | |
parent | e99cdf40c72dec8b9019eca728aaad0f82c6030b (diff) | |
download | vyos-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 'data/templates')
0 files changed, 0 insertions, 0 deletions