diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-19 12:10:43 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-10-19 13:06:16 +0200 |
commit | 8598a765e8ac9904cacc4abe858873d8a801ef95 (patch) | |
tree | 81b3786fa9ba5d50a71c87c159a48d50f9d0e61c /interface-definitions/include | |
parent | d1592875cadcda61b04cb479a5becebbae08d0d4 (diff) | |
download | vyos-1x-8598a765e8ac9904cacc4abe858873d8a801ef95.tar.gz vyos-1x-8598a765e8ac9904cacc4abe858873d8a801ef95.zip |
unittests: T2995: vyos_dict_search() must return None on non-existing keys
The current wversion unfortunately will raise a KeyError:
>>> data = {}
>>> vyos_dict_search('foo', data)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/vyos/util.py", line 685, in vyos_dict_search
return dict[path]
KeyError: 'foo'
Diffstat (limited to 'interface-definitions/include')
0 files changed, 0 insertions, 0 deletions