Skip to content

Commit

Permalink
Add UseRawOutput to CommonTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
dtan4 committed Dec 26, 2019
1 parent 0c46be5 commit 9dc94b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions terraform/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ type Template interface {

// CommonTemplate represents template entities
type CommonTemplate struct {
Title string
Message string
Result string
Body string
Link string
Title string
Message string
Result string
Body string
Link string
UseRawOutput bool
}

// DefaultTemplate is a default template for terraform commands
Expand Down
2 changes: 1 addition & 1 deletion terraform/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ func TestGetValue(t *testing.T) {
template := testCase.template
value := template.GetValue()
if !reflect.DeepEqual(value, testCase.expected) {
t.Errorf("got %q but want %q", value, testCase.expected)
t.Errorf("got %#v but want %#v", value, testCase.expected)
}
}
}

0 comments on commit 9dc94b1

Please sign in to comment.