From d2ca2ac1cf9cacd44a04fbb6da9a884c23f043f6 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 29 Dec 2021 13:44:10 -0600 Subject: configd: T4086: use 'copy' on mutable global var default_config_data --- src/conf_mode/system-login-banner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conf_mode/system-login-banner.py b/src/conf_mode/system-login-banner.py index 84ff08ebf..a521c9834 100755 --- a/src/conf_mode/system-login-banner.py +++ b/src/conf_mode/system-login-banner.py @@ -15,6 +15,7 @@ # along with this program. If not, see . from sys import exit +from copy import deepcopy from vyos.config import Config from vyos.util import write_file @@ -40,7 +41,7 @@ default_config_data = { } def get_config(config=None): - banner = default_config_data + banner = deepcopy(default_config_data) if config: conf = config else: -- cgit v1.2.3