mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +08:00
vmtypes names cannot be used as machine names
florent found a bug where he used "applehv" as a machine name. it turns out when we use a vmtype name, esp. the active type, it really messes up directory structures for configuration and images alike. Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -346,6 +346,7 @@ const (
|
||||
WSLVirt
|
||||
AppleHvVirt
|
||||
HyperVVirt
|
||||
UnknownVirt
|
||||
)
|
||||
|
||||
func (v VMType) String() string {
|
||||
@ -383,7 +384,7 @@ func ParseVMType(input string, emptyFallback VMType) (VMType, error) {
|
||||
case "":
|
||||
return emptyFallback, nil
|
||||
default:
|
||||
return QemuVirt, fmt.Errorf("unknown VMType `%s`", input)
|
||||
return UnknownVirt, fmt.Errorf("unknown VMType `%s`", input)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user