Skip to content

Commit 4e0da9c

Browse files
authored
Update outage only on status change (librenms#19961)
1 parent 9944839 commit 4e0da9c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/Actions/Device/SetDeviceAvailability.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public function execute(Device $device, bool $available, AvailabilitySource $sou
3434

3535
if ($commit) {
3636
$device->save();
37-
$this->updateDeviceOutage->execute($device, $available);
37+
if ($changed) {
38+
$this->updateDeviceOutage->execute($device, $available);
39+
}
3840
}
3941

4042
return $changed;

0 commit comments

Comments
 (0)