From db62ebf23fb4f00d1108aa2d19929554b916c055 Mon Sep 17 00:00:00 2001 From: Dj Walker-Morgan Date: Tue, 3 Jul 2018 13:48:34 +0100 Subject: [PATCH] Recipes didn't do name resolution - fixed --- cmd/recipes.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/recipes.go b/cmd/recipes.go index 3f5358d..5a7623a 100644 --- a/cmd/recipes.go +++ b/cmd/recipes.go @@ -31,12 +31,16 @@ var recipesCmd = &cobra.Command{ log.Fatal("Need a deployment id to show recipes for") } c := getComposeAPI() + depid, err := resolveDepID(c, args[0]) + if err != nil { + log.Fatal(err) + } if outputRaw { - text, errs := c.GetRecipesForDeploymentJSON(args[0]) + text, errs := c.GetRecipesForDeploymentJSON(depid) bailOnErrs(errs) fmt.Println(text) } else { - recipes, errs := c.GetRecipesForDeployment(args[0]) + recipes, errs := c.GetRecipesForDeployment(depid) bailOnErrs(errs) if !outputJSON { for _, v := range *recipes {