From 0eec78d7147a32ac31da4494dbf24cdd070975ab Mon Sep 17 00:00:00 2001 From: Michael Vincent Patterson Date: Thu, 27 Mar 2025 09:09:46 -0400 Subject: [PATCH] feat(cli): push dynamically generated templates with version name (#17114) Closes #17031 Updated tempatespush.go --- cli/templatepush.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/templatepush.go b/cli/templatepush.go index 7b3cec06a7..6f8edf61b5 100644 --- a/cli/templatepush.go +++ b/cli/templatepush.go @@ -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 }