mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): guest name has space
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user