Skip to content

Commit

Permalink
fix: cloud hypervisor auto starts (#920)
Browse files Browse the repository at this point in the history
The Cloud Hypervisor provider wasn't marked with the auto start capability
and so when a new VM was created the **Start** method was called on the
provider which resulted in a error.

Signed-off-by: Richard Case <richard.case@outlook.com>
  • Loading branch information
richardcase authored Jul 25, 2024
1 parent 23af00a commit 967627b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ type notSupportedError struct {

// Error returns the error message.
func (e notSupportedError) Error() string {
return e.unsupported + "is not supported"
return e.unsupported + " is not supported"
}

// IsNotSupported tests an error to see if its a not supported error.
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/microvm/cloudhypervisor/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type provider struct {

// Capabilities returns a list of the capabilities the provider supports.
func (p *provider) Capabilities() models.Capabilities {
return []models.Capability{}
return []models.Capability{models.AutoStartCapability}
}

// Start will start a created microvm.
Expand Down

0 comments on commit 967627b

Please sign in to comment.