From e6b1c1f572068535ea99ee39a2d66bd6bf7043d5 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 8 Dec 2021 13:29:46 -0600 Subject: vyos.util: T4061: add function to check for completion of boot config --- src/services/vyos-configd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/services/vyos-configd') diff --git a/src/services/vyos-configd b/src/services/vyos-configd index 670b6e66a..2d18589ef 100755 --- a/src/services/vyos-configd +++ b/src/services/vyos-configd @@ -28,6 +28,7 @@ import zmq from contextlib import contextmanager from vyos.defaults import directories +from vyos.util import boot_config_complete from vyos.configsource import ConfigSourceString, ConfigSourceError from vyos.config import Config from vyos import ConfigError @@ -186,7 +187,7 @@ def initialization(socket): session_out = None # if not a 'live' session, for example on boot, write to file - if not session_out or not os.path.isfile('/tmp/vyos-config-status'): + if not session_out or not boot_config_complete(): session_out = script_stdout_log session_mode = 'a' -- cgit v1.2.3 From 86ab3b7dad7f2ad2c39a8b110e4a845195cda32e Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Sat, 11 Dec 2021 12:47:26 -0600 Subject: vyos.util: T4061: fix typo in function name --- src/services/vyos-configd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/services/vyos-configd') diff --git a/src/services/vyos-configd b/src/services/vyos-configd index 2d18589ef..48c9135e2 100755 --- a/src/services/vyos-configd +++ b/src/services/vyos-configd @@ -28,7 +28,7 @@ import zmq from contextlib import contextmanager from vyos.defaults import directories -from vyos.util import boot_config_complete +from vyos.util import boot_configuration_complete from vyos.configsource import ConfigSourceString, ConfigSourceError from vyos.config import Config from vyos import ConfigError @@ -187,7 +187,7 @@ def initialization(socket): session_out = None # if not a 'live' session, for example on boot, write to file - if not session_out or not boot_config_complete(): + if not session_out or not boot_configuration_complete(): session_out = script_stdout_log session_mode = 'a' -- cgit v1.2.3