Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
FC: remove API Ready state
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Pennyzct committed Dec 4, 2019
1 parent 62cd080 commit 9ce2113
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions virtcontainers/fc.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type vmmState uint8

const (
notReady vmmState = iota
apiReady
cfReady
vmReady
)

Expand Down Expand Up @@ -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"
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9ce2113

Please sign in to comment.