Skip to content

Commit

Permalink
Skip secret key if it's empty list (#12)
Browse files Browse the repository at this point in the history
Fixes #11

Signed-off-by: Berndt Jung <bjung@vmware.com>
  • Loading branch information
berndtj authored Oct 8, 2018
1 parent f30f5d5 commit bd06ac1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/funky/injector.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func (i *EnvVarSecretInjector) Inject(req *Request) error {

secrets := map[string]string{}
for _, v := range i.secrets {
if v == "" {
continue
}
secrets[v] = os.Getenv("d_secret_" + v)
}

Expand Down

0 comments on commit bd06ac1

Please sign in to comment.