You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix syslog config regeneration and reset MDSDSyslogPort on removal (#2187)
* Fix syslog config regeneration and reset port on removal
- In generate_localsyslog_configs, do not return early when syslog_port
equals MDSDSyslogPort if none of the syslog config files exist, ensuring
configs are regenerated when missing.
- In remove_localsyslog_configs, reset MDSDSyslogPort to 0 so the next
call to generate_localsyslog_configs will not short-circuit.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add unit tests for syslog config regeneration and port reset
- Test generate_localsyslog_configs does not return early when port
matches but no config files exist (covers the regeneration fix)
- Test generate_localsyslog_configs returns early when port matches
and config files are present
- Test remove_localsyslog_configs resets MDSDSyslogPort to 0
- Test port reset enables subsequent config regeneration
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments