diff --git a/contrib/grpcplugins/action/group-tmpl/main.go b/contrib/grpcplugins/action/group-tmpl/main.go index 2840b88ee1..e1a77fcc93 100644 --- a/contrib/grpcplugins/action/group-tmpl/main.go +++ b/contrib/grpcplugins/action/group-tmpl/main.go @@ -5,10 +5,10 @@ import ( "context" "encoding/json" "fmt" - "html/template" "io/ioutil" "os" "strings" + "text/template" "github.com/golang/protobuf/ptypes/empty" diff --git a/contrib/grpcplugins/action/group-tmpl/plugin_test.go b/contrib/grpcplugins/action/group-tmpl/plugin_test.go index def5f49a87..207a78211a 100644 --- a/contrib/grpcplugins/action/group-tmpl/plugin_test.go +++ b/contrib/grpcplugins/action/group-tmpl/plugin_test.go @@ -3,22 +3,17 @@ package main import ( "context" "encoding/json" - "html/template" "io/ioutil" - "log" "os" "reflect" "testing" + "text/template" "github.com/ovh/cds/sdk" "github.com/ovh/cds/sdk/grpcplugin/actionplugin" - "github.com/ovh/cds/sdk/plugin" ) func TestRun(t *testing.T) { - // replace plugin logger - plugin.Trace = log.New(os.Stderr, "", 0) - outputfile := "result.json" tmpdir := os.TempDir() diff --git a/contrib/grpcplugins/action/group-tmpl/templates.go b/contrib/grpcplugins/action/group-tmpl/templates.go index 19d756f9ce..f643b2304d 100644 --- a/contrib/grpcplugins/action/group-tmpl/templates.go +++ b/contrib/grpcplugins/action/group-tmpl/templates.go @@ -2,8 +2,8 @@ package main import ( "bytes" - "html/template" "strings" + "text/template" ) var funcMap template.FuncMap = template.FuncMap{