Skip to content

Commit

Permalink
Removing "input=true" from ignoredFiles and includedFiles (hashicorp#349
Browse files Browse the repository at this point in the history
)

<!-- This change is generated by MagicModules. -->
/cc @naseemkullah
  • Loading branch information
modular-magician authored and rileykarson committed Jan 15, 2019
1 parent 4870eae commit d988280
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions google-beta/resource_cloudbuild_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,13 @@ func resourceCloudBuildTrigger() *schema.Resource {
"ignored_files": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"included_files": {
Type: schema.TypeList,
Optional: true,
ForceNew: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
Expand Down Expand Up @@ -347,6 +345,18 @@ func resourceCloudBuildTriggerUpdate(d *schema.ResourceData, meta interface{}) e
} else if v, ok := d.GetOkExists("filename"); !isEmptyValue(reflect.ValueOf(v)) && (ok || !reflect.DeepEqual(v, filenameProp)) {
obj["filename"] = filenameProp
}
ignoredFilesProp, err := expandCloudBuildTriggerIgnoredFiles(d.Get("ignored_files"), d, config)
if err != nil {
return err
} else if v, ok := d.GetOkExists("ignored_files"); !isEmptyValue(reflect.ValueOf(v)) && (ok || !reflect.DeepEqual(v, ignoredFilesProp)) {
obj["ignoredFiles"] = ignoredFilesProp
}
includedFilesProp, err := expandCloudBuildTriggerIncludedFiles(d.Get("included_files"), d, config)
if err != nil {
return err
} else if v, ok := d.GetOkExists("included_files"); !isEmptyValue(reflect.ValueOf(v)) && (ok || !reflect.DeepEqual(v, includedFilesProp)) {
obj["includedFiles"] = includedFilesProp
}
triggerTemplateProp, err := expandCloudBuildTriggerTriggerTemplate(d.Get("trigger_template"), d, config)
if err != nil {
return err
Expand Down

0 comments on commit d988280

Please sign in to comment.