summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-29 06:07:51 +0200
committerGitHub <noreply@github.com>2024-04-29 06:07:51 +0200
commit0c0799aa08a765812cf1266692539cf5ffda670b (patch)
tree506a78ca74becc86493444cb175ea6e3f399b32f
parentaa15f74818ca2cb35696315cc5cb0c57335f6911 (diff)
parent9438f1f8394b7c90bb536292882571c88556ce87 (diff)
downloadvyos-1x-0c0799aa08a765812cf1266692539cf5ffda670b.tar.gz
vyos-1x-0c0799aa08a765812cf1266692539cf5ffda670b.zip
Merge pull request #3372 from jestabro/no-configdep-on-err
configdep: T6276: do not call dependencies on script error
-rwxr-xr-xsrc/services/vyos-configd2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/vyos-configd b/src/services/vyos-configd
index 648a017d5..c89c486e5 100755
--- a/src/services/vyos-configd
+++ b/src/services/vyos-configd
@@ -236,7 +236,7 @@ def process_node_data(config, data, last: bool = False) -> int:
with stdout_redirected(session_out, session_mode):
result = run_script(conf_mode_scripts[script_name], config, args)
- if last:
+ if last and result == R_SUCCESS:
call_dependents(dependent_func=config.dependent_func)
return result