mirror of
https://github.com/rancher/cli.git
synced 2026-02-05 09:48:36 +01:00
Use version link to find template
This commit is contained in:
committed by
Craig Jellick
parent
8372607f9e
commit
88402d671c
@@ -642,7 +642,7 @@ func templateInstall(ctx *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
templateVersionID := templateVersionIDFromVersionLink(latestVersion)
|
||||
templateVersionID := templateVersionIDFromVersionLink(template.VersionLinks[latestVersion])
|
||||
userVersion := ctx.String("version")
|
||||
if userVersion != "" {
|
||||
if link, ok := template.VersionLinks[userVersion]; ok {
|
||||
|
||||
Reference in New Issue
Block a user