From 959d96ceb38080748b6d195031a8013eb4a67f3b Mon Sep 17 00:00:00 2001 From: kamijin_fanta Date: Wed, 30 Jan 2019 16:37:47 +0900 Subject: Add build time tests for NTP --- src/conf_mode/ntp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/conf_mode') 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 -- cgit v1.2.3