summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorkamijin_fanta <kamijin@live.jp>2019-01-30 16:37:47 +0900
committerChristian Poessinger <christian@poessinger.com>2019-01-30 08:37:47 +0100
commit959d96ceb38080748b6d195031a8013eb4a67f3b (patch)
tree6e82034b3fb51acf4e0595317b12fe4f3aa2b1d2 /src/conf_mode
parentcc07c4727bdffb4c220ce28ab9f697b01fe4afb7 (diff)
downloadvyos-1x-959d96ceb38080748b6d195031a8013eb4a67f3b.tar.gz
vyos-1x-959d96ceb38080748b6d195031a8013eb4a67f3b.zip
Add build time tests for NTP
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