Merge pull request #679 from ckeyer/template_getenv

add getenv
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-05-10 08:50:11 -03:00 committed by GitHub
commit 317f222527

View file

@ -22,6 +22,7 @@ import (
"encoding/json"
"fmt"
"net"
"os"
"os/exec"
"strings"
text_template "text/template"
@ -139,6 +140,7 @@ var (
"buildResolvers": buildResolvers,
"isLocationAllowed": isLocationAllowed,
"buildLogFormatUpstream": buildLogFormatUpstream,
"getenv": os.Getenv,
"contains": strings.Contains,
"hasPrefix": strings.HasPrefix,
"hasSuffix": strings.HasSuffix,