Skip to content

Commit

Permalink
fix(plugin): fix group-tmpl-plugin (#3437)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
  • Loading branch information
bnjjj authored and fsamin committed Oct 10, 2018
1 parent d47187a commit e3413a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contrib/grpcplugins/action/group-tmpl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"context"
"encoding/json"
"fmt"
"html/template"
"io/ioutil"
"os"
"strings"
"text/template"

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

Expand Down
7 changes: 1 addition & 6 deletions contrib/grpcplugins/action/group-tmpl/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion contrib/grpcplugins/action/group-tmpl/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"bytes"
"html/template"
"strings"
"text/template"
)

var funcMap template.FuncMap = template.FuncMap{
Expand Down

0 comments on commit e3413a6

Please sign in to comment.