From aa6c44e767a8a61b790d4232a478ff767d8c3293 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 14 Mar 2021 12:46:27 +0100 Subject: [PATCH] minor fix for https://github.com/opnsense/core/pull/4763, mutable default argument (https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments) --- src/opnsense/scripts/dns/unbound_dhcpd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/scripts/dns/unbound_dhcpd.py b/src/opnsense/scripts/dns/unbound_dhcpd.py index 25d001dd1..ff61a2cd3 100755 --- a/src/opnsense/scripts/dns/unbound_dhcpd.py +++ b/src/opnsense/scripts/dns/unbound_dhcpd.py @@ -41,7 +41,7 @@ from daemonize import Daemonize import watchers.dhcpd -def unbound_control(commands, input=list(), output_stream=None): +def unbound_control(commands, input=None, output_stream=None): """ execute (chrooted) unbound-control command :param commands: command list (parameters) :param input: (optional ) list of lines to be sent to input stream