summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/ntp.py10
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