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:
1 parent
9dac2cd1e7
commit
e44e9776ae
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user