diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-05-12 20:43:10 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-05-12 20:43:10 +0200 |
commit | 53e0b1f060c3403ec29658a566d370d12cf7f22f (patch) | |
tree | f3559026db30bcdaf5341bf743b4a259568b08f7 /python | |
parent | acd2822890afa32ded51e2120f6c176916a06f35 (diff) | |
download | vyos-1x-53e0b1f060c3403ec29658a566d370d12cf7f22f.tar.gz vyos-1x-53e0b1f060c3403ec29658a566d370d12cf7f22f.zip |
T560: bugfix access to NoneType object
Commit f1bbc20716 ("Add jinja2 and ipaddrcheck to dependencies.")
introduced access to a NoneType object when the service was removed.
This happened after:
$ delete service dns forwarding
$ commit
File "/opt/vyatta/sbin/vyos-config-dns-forwarding.py", line 201, in <module>
verify(c)
File "/opt/vyatta/sbin/vyos-config-dns-forwarding.py", line 164, in verify
if not dns['interfaces']:
TypeError: 'NoneType' object is not subscriptable
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions