diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-20 17:58:08 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-20 17:58:08 +0100 |
commit | e30294fd2ea128c127d5b6af5cad56f835080181 (patch) | |
tree | 3057ea6975d737229d1a019a1e2bfe0ef04ad2b2 /src | |
parent | 7fc6a185b599cea761817a5a9bb3ed5beb3456aa (diff) | |
download | vyos-1x-e30294fd2ea128c127d5b6af5cad56f835080181.tar.gz vyos-1x-e30294fd2ea128c127d5b6af5cad56f835080181.zip |
ntp: only import deepcopy from copy
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/ntp.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py index f706d502f..c3e8d51b3 100755 --- a/src/conf_mode/ntp.py +++ b/src/conf_mode/ntp.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2018 VyOS maintainers and contributors +# Copyright (C) 2018-2020 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -13,15 +13,13 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -# -# import sys import os - import jinja2 import ipaddress -import copy + +from copy import deepcopy from vyos.config import Config from vyos import ConfigError @@ -78,7 +76,7 @@ default_config_data = { } def get_config(): - ntp = copy.deepcopy(default_config_data) + ntp = deepcopy(default_config_data) conf = Config() if not conf.exists('system ntp'): return None |