From 97fcf95c45f8dc200bebd595cfcd8133d207d238 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Wed, 16 Sep 2020 14:09:02 +1000 Subject: [PATCH] move debug closer to where it actually happening --- cmd/exec.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/exec.go b/cmd/exec.go index d8d0c6c..ab1fa55 100644 --- a/cmd/exec.go +++ b/cmd/exec.go @@ -55,15 +55,12 @@ var execCmd = &cobra.Command{ i, _ := ring.Get(fmt.Sprintf("%s-%s", profileName, profileSection.Key("auth_type").String())) - fmt.Printf("%v", string(i.Data)) - - log.Debug("environment is populated with credentials") - command := exec.Command(args[1]) command.Env = append(os.Environ(), fmt.Sprintf("CLOUDFLARE_EMAIL=%s", profileSection.Key("email").String()), fmt.Sprintf("CLOUDFLARE_%s=%s", strings.ToUpper(profileSection.Key("auth_type").String()), string(i.Data)), ) + log.Debug("environment is populated with credentials") commandOutput := &bytes.Buffer{} command.Stdout = commandOutput err = command.Run()