Skip to content

Commit 5e85fe7

Browse files
AMeceavtemian
authored andcommitted
Check for nil when logging orc.Instance, fixes #528
1 parent f03ee35 commit 5e85fe7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/orchestrator/orchestrator_reconcile.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,10 @@ func makeRecoveryMessage(acks []orc.TopologyRecovery) string {
635635
}
636636

637637
func instToLog(inst *orc.Instance) map[string]string {
638+
if inst == nil {
639+
return nil
640+
}
641+
638642
return map[string]string{
639643
"Hostname": inst.Key.Hostname,
640644
"MasterHostname": inst.MasterKey.Hostname,

0 commit comments

Comments
 (0)