Skip to content

Commit

Permalink
configdep: T6276: do not call dependencies on script error
Browse files Browse the repository at this point in the history
(cherry picked from commit 9438f1f)
  • Loading branch information
jestabro committed Apr 29, 2024
1 parent d2ba96d commit 2479ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/vyos-configd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2479ed1

Please sign in to comment.