summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/ntp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py
index 68a046939..fccec3575 100755
--- a/src/conf_mode/ntp.py
+++ b/src/conf_mode/ntp.py
@@ -21,6 +21,7 @@ import os
import jinja2
import ipaddress
+import copy
from vyos.config import Config
from vyos import ConfigError
@@ -79,7 +80,7 @@ default_config_data = {
}
def get_config():
- ntp = default_config_data
+ ntp = copy.deepcopy(default_config_data)
conf = Config()
if not conf.exists('system ntp'):
return None