Incorrect field name being passed to info print statement for Mount Type

pull/15731/head
Sudharsan Rangarajan 2023-01-28 08:53:46 +05:30
parent 78e258a73c
commit 7ce7244596
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ var mountCmd = &cobra.Command{
bindIP = "127.0.0.1"
}
out.Step(style.Mounting, "Mounting host path {{.sourcePath}} into VM as {{.destinationPath}} ...", out.V{"sourcePath": hostPath, "destinationPath": vmPath})
out.Infof("Mount type: {{.name}}", out.V{"type": cfg.Type})
out.Infof("Mount type: {{.name}}", out.V{"name": cfg.Type})
out.Infof("User ID: {{.userID}}", out.V{"userID": cfg.UID})
out.Infof("Group ID: {{.groupID}}", out.V{"groupID": cfg.GID})
out.Infof("Version: {{.version}}", out.V{"version": cfg.Version})