mirror of
https://github.com/ovh/the-bastion.git
synced 2025-09-05 20:44:16 +08:00
fix: don't emit a membership log when nothing changed
This commit is contained in:
parent
077735908a
commit
7a043165bc
1 changed files with 2 additions and 1 deletions
|
@ -340,7 +340,8 @@ sub act {
|
|||
}
|
||||
}
|
||||
|
||||
if ($fnret) {
|
||||
# don't log on OK_NO_CHANGE, only on OK
|
||||
if ($fnret->err eq 'OK') {
|
||||
OVH::Bastion::syslogFormatted(
|
||||
severity => 'info',
|
||||
type => 'membership',
|
||||
|
|
Loading…
Add table
Reference in a new issue