fix(host): guest name has space

This commit is contained in:
wanyaoqi
2023-05-11 17:43:49 +08:00
parent 9a1f60a311
commit f7cae161b2
+1 -1
View File
@@ -224,7 +224,7 @@ func (o baseOptions) KeyboardLayoutLanguage(lang string) string {
}
func (o baseOptions) Name(name string) string {
return fmt.Sprintf(`-name '%s',debug-threads=on`, name)
return fmt.Sprintf(`-name '%s',debug-threads=on`, strings.ReplaceAll(name, " ", "_"))
}
func (o baseOptions) UUID(enable bool, uuid string) string {