summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-12-29 13:44:10 -0600
committerJohn Estabrook <jestabro@vyos.io>2021-12-29 13:44:10 -0600
commitd2ca2ac1cf9cacd44a04fbb6da9a884c23f043f6 (patch)
tree78ce0366ec53a6c681d41f559e069d075aabb484
parent6414138a9c5bc55c5a0037ffa523a14b76e814af (diff)
downloadvyos-1x-d2ca2ac1cf9cacd44a04fbb6da9a884c23f043f6.tar.gz
vyos-1x-d2ca2ac1cf9cacd44a04fbb6da9a884c23f043f6.zip
configd: T4086: use 'copy' on mutable global var default_config_data
-rwxr-xr-xsrc/conf_mode/system-login-banner.py3
1 files changed, 2 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
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: