From 05595835f1f748e80c37bd81dda37dfb9d869bfc Mon Sep 17 00:00:00 2001 From: Robbie Zhang Date: Wed, 10 Oct 2018 10:40:41 -0700 Subject: [PATCH] Make default waiting reason to be Creating (#372) --- providers/azure/aci.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/providers/azure/aci.go b/providers/azure/aci.go index 1899d4083..5e85eedcd 100644 --- a/providers/azure/aci.go +++ b/providers/azure/aci.go @@ -1505,11 +1505,16 @@ func aciContainerStateToContainerState(cs aci.ContainerState) v1.ContainerState } } + state := cs.State + if state == "" { + state = "Creating" + } + // Handle the case where the container is pending. // Which should be all other aci states. return v1.ContainerState{ Waiting: &v1.ContainerStateWaiting{ - Reason: cs.State, + Reason: state, Message: cs.DetailStatus, }, }