8000 fix(plugin): fix group-tmpl-plugin (#3437) · ovh/cds@e3413a6 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit e3413a6

Browse files
bnjjjfsamin
authored andcommitted
fix(plugin): fix group-tmpl-plugin (#3437)
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
1 parent d47187a commit e3413a6

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

contrib/grpcplugins/action/group-tmpl/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"context"
66
"encoding/json"
77
"fmt"
8-
"html/template"
98
"io/ioutil"
109
"os"
1110
"strings"
11+
"text/template"
1212

1313
"github.com/golang/protobuf/ptypes/empty"
1414

contrib/grpcplugins/action/group-tmpl/plugin_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,17 @@ package main
33
import (
44
"context"
55
"encoding/json"
6-
"html/template"
76
"io/ioutil"
8-
"log"
97
"os"
108
"reflect"
119
"testing"
10+
"text/template"
1211

1312
"github.com/ovh/cds/sdk"
1413
"github.com/ovh/cds/sdk/grpcplugin/actionplugin"
15-
"github.com/ovh/cds/sdk/plugin"
1614
)
1715

1816
func TestRun(t *testing.T) {
19-
// replace plugin logger
20-
plugin.Trace = log.New(os.Stderr, "", 0)
21-
2217
outputfile := "result.json"
2318

2419
tmpdir := os.TempDir()

contrib/grpcplugins/action/group-tmpl/templates.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package main
22

33
import (
44
"bytes"
5-
"html/template"
65
"strings"
6+
"text/template"
77
)
88

99
var funcMap template.FuncMap = template.FuncMap{

0 commit comments

Comments
 (0)
0