mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
unbound, fix nested items, closes https://github.com/opnsense/core/issues/3302
ranges like: ``` num.query.tls=0 num.query.tls.resume=0 ``` cause a "TypeError: 'str' object does not support item assignment"
This commit is contained in:
parent
1855ce9488
commit
041d6eaab4
@ -92,11 +92,13 @@ elif args.stats:
|
||||
while len(keys) > 0 :
|
||||
key = keys.pop(0)
|
||||
if len(keys) == 0:
|
||||
if key not in ptr:
|
||||
ptr[key] = value.strip()
|
||||
ptr[key] = value.strip()
|
||||
elif key not in ptr:
|
||||
ptr[key] = dict()
|
||||
elif type(ptr[key]) != dict:
|
||||
ptr[key] = {'__value__': ptr[key]}
|
||||
ptr = ptr[key]
|
||||
|
||||
elif args.list_local_zones:
|
||||
output = list()
|
||||
for line in unbound_control_reader('list_local_zones'):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user