quote variables in GuestMountConflict warning

pull/9178/head
Asare Worae 2020-09-03 18:39:31 +02:00
parent 4e772347d4
commit e20223d598
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ func runStart(cmd *cobra.Command, args []string) {
if viper.GetBool(createMount) {
mount := viper.GetString(mountString)
if len(existing.ContainerVolumeMounts) != 1 || existing.ContainerVolumeMounts[0] != mount {
exit.Message(reason.GuestMountConflict, "Sorry, {{.driver}} does not allow mounts to be changed after container creation (previous mount: {{.old}}, new mount: {{.new}})", out.V{
exit.Message(reason.GuestMountConflict, "Sorry, {{.driver}} does not allow mounts to be changed after container creation (previous mount: '{{.old}}', new mount: '{{.new}})'", out.V{
"driver": existing.Driver,
"new": mount,
"old": existing.ContainerVolumeMounts[0],