From 64c7d460491cb3eb12f94a88fae436bf53c9e465 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 10 Mar 2019 12:00:22 +0100 Subject: [PATCH] unbound, some weird duplicate key in output, for https://github.com/opnsense/core/issues/3302 --- src/opnsense/scripts/unbound/wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/scripts/unbound/wrapper.py b/src/opnsense/scripts/unbound/wrapper.py index be353e0a6..af530168a 100755 --- a/src/opnsense/scripts/unbound/wrapper.py +++ b/src/opnsense/scripts/unbound/wrapper.py @@ -91,7 +91,7 @@ elif args.stats: ptr = output while len(keys) > 0 : key = keys.pop(0) - if len(keys) == 0: + if len(keys) == 0 and type(ptr[key]) == dict: ptr[key] = value.strip() elif key not in ptr: ptr[key] = dict()