1
0
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:
Dan Ramich
2019-08-13 14:13:30 -07:00
committed by Craig Jellick
parent 8372607f9e
commit 88402d671c
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {