From e137e3b323c9a429200ab18be2c4f53450d130f9 Mon Sep 17 00:00:00 2001 From: amecea Date: Wed, 17 Jun 2020 15:50:39 +0300 Subject: [PATCH] Check for nil when logging orc.Instance, fixes #528 --- pkg/controller/orchestrator/orchestrator_reconcile.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller/orchestrator/orchestrator_reconcile.go b/pkg/controller/orchestrator/orchestrator_reconcile.go index f1c0af1de..7a31e046b 100644 --- a/pkg/controller/orchestrator/orchestrator_reconcile.go +++ b/pkg/controller/orchestrator/orchestrator_reconcile.go @@ -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,