From 51184eb2b447685ea19aa4624c5d6a731097a087 Mon Sep 17 00:00:00 2001 From: derailed Date: Fri, 26 Apr 2019 18:32:28 -0600 Subject: [PATCH] clean up --- internal/resource/pod.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/resource/pod.go b/internal/resource/pod.go index d337df45..5c82cc5f 100644 --- a/internal/resource/pod.go +++ b/internal/resource/pod.go @@ -256,7 +256,7 @@ func isSet(s *string) bool { return s != nil && *s != "" } -func (p *Pod) phase(po *v1.Pod) string { +func (r *Pod) phase(po *v1.Pod) string { status := string(po.Status.Phase) if po.Status.Reason != "" { if po.DeletionTimestamp != nil && po.Status.Reason == node.NodeUnreachablePodReason { @@ -266,7 +266,7 @@ func (p *Pod) phase(po *v1.Pod) string { } var init bool - init, status = p.initPhase(po, status) + init, status = r.initPhase(po, status) if init { return status }