feat(cli): push dynamically generated templates with version name (#17114)

Closes #17031 
Updated tempatespush.go
This commit is contained in:
Michael Vincent Patterson
2025-03-27 09:09:46 -04:00
committed by GitHub
parent 7d4b3c8634
commit 0eec78d714
+2 -1
View File
@@ -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
}