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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy