fix: don't emit a membership log when nothing changed

This commit is contained in:
Stéphane Lesimple 2022-06-29 09:32:30 +00:00 committed by Stéphane Lesimple
parent 077735908a
commit 7a043165bc

View file

@ -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',