mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
feat(cli): push dynamically generated templates with version name (#17114)
Closes #17031 Updated tempatespush.go
This commit is contained in:
+2
-1
@@ -137,8 +137,9 @@ func (r *RootCmd) templatePush() *serpent.Command {
|
||||
UserVariableValues: userVariableValues,
|
||||
}
|
||||
|
||||
// This ensures the version name is set in the request arguments regardless of whether you're creating a new template or updating an existing one.
|
||||
args.Name = versionName
|
||||
if !createTemplate {
|
||||
args.Name = versionName
|
||||
args.Template = &template
|
||||
args.ReuseParameters = !alwaysPrompt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user