Skip to content

Commit 9a9fc55

Browse files
committed
This ensures the version name is set in the request arguments
1 parent 3c89e19 commit 9a9fc55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/templatepush.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,9 @@ func (r *RootCmd) templatePush() *serpent.Command {
137137
UserVariableValues: userVariableValues,
138138
}
139139

140+
// 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.
141+
args.Name = versionName
140142
if !createTemplate {
141-
args.Name = versionName
142143
args.Template = &template
143144
args.ReuseParameters = !alwaysPrompt
144145
}

0 commit comments

Comments
 (0)