Skip to content

Commit

Permalink
add default for view_link results_link and push them if they are 0
Browse files Browse the repository at this point in the history
  • Loading branch information
zscholl committed Feb 22, 2021
1 parent dad90c0 commit b9585fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions client/models/saved_searches.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ type SavedSearchObject struct {
ActionEmailFormat string `json:"action.email.format,omitempty" url:"action.email.format,omitempty"`
ActionEmailFrom string `json:"action.email.from,omitempty" url:"action.email.from,omitempty"`
ActionEmailHostname string `json:"action.email.hostname,omitempty" url:"action.email.hostname,omitempty"`
ActionEmailIncludeResultsLink int `json:"action.email.include.results_link,string,omitempty" url:"action.email.include.results_link,omitempty"`
ActionEmailIncludeSearch int `json:"action.email.include.search,string,omitempty" url:"action.email.include.search,omitempty"`
ActionEmailIncludeTrigger int `json:"action.email.include.trigger,string,omitempty" url:"action.email.include.trigger,omitempty"`
ActionEmailIncludeTriggerTime int `json:"action.email.include.trigger_time,string,omitempty" url:"action.email.include.trigger_time,omitempty"`
ActionEmailIncludeViewLink int `json:"action.email.include.view_link,string,omitempty" url:"action.email.include.view_link,omitempty"`
ActionEmailIncludeResultsLink int `json:"action.email.include.results_link,string,omitempty" url:"action.email.include.results_link"`
ActionEmailIncludeSearch int `json:"action.email.include.search,string,omitempty" url:"action.email.include.search"`
ActionEmailIncludeTrigger int `json:"action.email.include.trigger,string,omitempty" url:"action.email.include.trigger"`
ActionEmailIncludeTriggerTime int `json:"action.email.include.trigger_time,string,omitempty" url:"action.email.include.trigger_time"`
ActionEmailIncludeViewLink int `json:"action.email.include.view_link,string,omitempty" url:"action.email.include.view_link"`
ActionEmailInline bool `json:"action.email.inline" url:"action.email.inline"`
ActionEmailMailserver string `json:"action.email.mailserver,omitempty" url:"action.email.mailserver,omitempty"`
ActionEmailMaxResults int `json:"action.email.maxresults,omitempty" url:"action.email.maxresults,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions splunk/resource_splunk_saved_searches.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func savedSearches() *schema.Resource {
"action_email_include_results_link": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Default: 1,
Description: "Specify whether to include a link to the results. [1|0]",
},
"action_email_include_search": {
Expand All @@ -110,7 +110,7 @@ func savedSearches() *schema.Resource {
"action_email_include_view_link": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Default: 1,
Description: "Specify whether to show the title and a link to enable the user to edit the saved search. [1|0]",
},
"action_email_inline": {
Expand Down

0 comments on commit b9585fc

Please sign in to comment.