mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
configctl: with the support of our stream reader (42fd27df77), we didn't collect the results when used as an event handler, in which case the action is silently dropped. let's wait for configd's result and add it to the log message as well. closes https://github.com/opnsense/core/issues/7164
This commit is contained in:
parent
d6a95767e3
commit
042f71db12
@ -133,8 +133,12 @@ if args.e:
|
||||
syslog_notice("event @ %.2f msg: %s" % (last_message_stamp, line))
|
||||
# execute command(s)
|
||||
for exec_command in exec_commands:
|
||||
syslog_notice("event @ %.2f exec: %s" % (last_message_stamp, exec_command))
|
||||
exec_config_cmd(exec_command=exec_command)
|
||||
if args.d:
|
||||
exec_command = '&' + exec_command
|
||||
# we need to fetch the generator's response in order to execute the command, lets return it to the
|
||||
# users as well.
|
||||
cmd_outp = (' '.join(exec_config_cmd(exec_command=exec_command))).strip()
|
||||
syslog_notice("event @ %.2f exec: %s response: %s" % (last_message_stamp, exec_command, cmd_outp))
|
||||
stashed_lines = list()
|
||||
else:
|
||||
# normal execution mode
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user