diff options
author | John Estabrook <jestabro@vyos.io> | 2021-12-29 13:44:10 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-12-29 14:09:49 -0600 |
commit | 8341dbb811abf37b8cf4caf20d9e05ed4fb7d61a (patch) | |
tree | c8f3932fd0cbb3ef83a6373e45eab012a70fb677 /src/conf_mode | |
parent | aa3cf49f191d0a9cbf36a8f8efebc22293e637c8 (diff) | |
download | vyos-1x-8341dbb811abf37b8cf4caf20d9e05ed4fb7d61a.tar.gz vyos-1x-8341dbb811abf37b8cf4caf20d9e05ed4fb7d61a.zip |
configd: T4086: use 'copy' on mutable global var default_config_data
(cherry picked from commit d2ca2ac1cf9cacd44a04fbb6da9a884c23f043f6)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/system-login-banner.py | 3 |
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: |