fix: trim leading and trailing spaces from template parameters (#2829) (#2879)

This commit is contained in:
Ketan Gangatirkar
2022-07-11 11:46:03 -05:00
committed by GitHub
parent 749694b7de
commit 5eecbaa534
+1
View File
@@ -47,6 +47,7 @@ func ParameterSchema(cmd *cobra.Command, parameterSchema codersdk.ParameterSchem
value, err = Prompt(cmd, PromptOptions{
Text: Styles.Bold.Render(text),
})
value = strings.TrimSpace(value)
}
if err != nil {
return "", err