Skip to content

Commit

Permalink
Check for nil when logging orc.Instance, fixes #528
Browse files Browse the repository at this point in the history
  • Loading branch information
AMecea committed Jun 17, 2020
1 parent f03ee35 commit e137e3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/orchestrator/orchestrator_reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,10 @@ func makeRecoveryMessage(acks []orc.TopologyRecovery) string {
}

func instToLog(inst *orc.Instance) map[string]string {
if inst == nil {
return nil
}

return map[string]string{
"Hostname": inst.Key.Hostname,
"MasterHostname": inst.MasterKey.Hostname,
Expand Down

0 comments on commit e137e3b

Please sign in to comment.