From b00dfc52a931cf37bfc7c729b876048dc0f923a7 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 19 Jul 2019 14:32:40 +0200 Subject: [PATCH] Use the passed in yamlString instead of ignoring it We already parse the yamlString and pass it into Bundle, use it. --- cmd/bundle.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/bundle.go b/cmd/bundle.go index 7d899eb..7920142 100644 --- a/cmd/bundle.go +++ b/cmd/bundle.go @@ -58,9 +58,6 @@ func init() { func Bundle(yamlString []byte, outputPath string, cli config.Cli) { - yamlString, err := ioutil.ReadFile(cli.YamlPath) - utils.CheckError(err, "Unable to read yaml Config.") - client, err := runtime.NewClientFromYaml(yamlString, &cli) if err != nil { utils.ExitWithErrorMessage(err.Error())