From 9ce2113535a043b34520b332089dd73e403c44bd Mon Sep 17 00:00:00 2001 From: Penny Zheng Date: Fri, 15 Nov 2019 00:25:13 -0800 Subject: [PATCH] FC: remove API Ready state Since we decide to adopt config file to configure, we could bypass API Ready state. Here, we also create a new config ready state: `cfReady`, to represent configuration part is done. Fixes: #2199 Signed-off-by: Penny Zheng --- virtcontainers/fc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/virtcontainers/fc.go b/virtcontainers/fc.go index f1512d8825..b709c9c976 100644 --- a/virtcontainers/fc.go +++ b/virtcontainers/fc.go @@ -46,7 +46,7 @@ type vmmState uint8 const ( notReady vmmState = iota - apiReady + cfReady vmReady ) @@ -96,8 +96,8 @@ func (s vmmState) String() string { switch s { case notReady: return "FC not ready" - case apiReady: - return "FC API ready" + case cfReady: + return "FC configure ready" case vmReady: return "FC VM ready" } @@ -446,7 +446,7 @@ func (fc *firecracker) fcInit(timeout int) error { return err } - fc.state.set(apiReady) + fc.state.set(cfReady) // Store VMM information if fc.store != nil {