rbdmirror: fix the nil point error check during status updates

the status  was still reading from the nil state,
updated the code to dont read from  nil object

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit 0b4f89873c)
This commit is contained in:
parth-gr authored and Mergify committed 2025-06-10 16:18:01 +00:00
1 parent 9dac2cd1e7
commit e44e9776ae
1 file changed
+1 -1
+1 -1
View File
@@ -114,7 +114,7 @@ func (c *mirrorChecker) CheckMirroringHealth() error {
}
// On success
if mirrorStatus.Summary != nil {
if mirrorStatus != nil {
c.UpdateStatusMirroring(mirrorStatus.Summary, mirrorInfo, snapSchedStatus, "")
}
return nil