Skip to content

Commit 7defea9

Browse files
author
Uddipaan Hazarika
committed
added suppress functions
1 parent bb2bb12 commit 7defea9

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

internal/provider/resource_oracle_dsource.go

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ func resourceOracleDsource() *schema.Resource {
3030
"source_value": {
3131
Type: schema.TypeString,
3232
Required: true,
33+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
34+
return true
35+
},
3336
},
3437
"group_id": {
3538
Type: schema.TypeString,
3639
Optional: true,
40+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
41+
return true
42+
},
3743
},
3844
"description": {
3945
Type: schema.TypeString,
@@ -48,6 +54,9 @@ func resourceOracleDsource() *schema.Resource {
4854
Type: schema.TypeBool,
4955
Optional: true,
5056
Default: true,
57+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
58+
return true
59+
},
5160
},
5261
"tags": {
5362
Type: schema.TypeList,
@@ -563,11 +572,17 @@ func resourceOracleDsource() *schema.Resource {
563572
Type: schema.TypeInt,
564573
Default: 0,
565574
Optional: true,
575+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
576+
return true
577+
},
566578
},
567579
"skip_wait_for_snapshot_creation": {
568580
Type: schema.TypeBool,
569581
Default: false,
570582
Optional: true,
583+
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
584+
return true
585+
},
571586
},
572587
},
573588
Importer: &schema.ResourceImporter{
@@ -823,12 +838,6 @@ func resourceOracleDsourceRead(ctx context.Context, d *schema.ResourceData, meta
823838
ops_pre_log_sync_Raw, _ := d.Get("ops_pre_log_sync").([]interface{})
824839
oldOpsPreLogSync := toSourceOperationArray(ops_pre_log_sync_Raw)
825840

826-
make_current_account_owner, _ := d.Get("make_current_account_owner").(bool)
827-
if isEmpty(make_current_account_owner) {
828-
make_current_account_owner = true
829-
}
830-
831-
d.Set("make_current_account_owner", make_current_account_owner)
832841
d.Set("id", result.GetId())
833842
d.Set("database_type", result.GetDatabaseType())
834843
d.Set("name", result.GetName())

0 commit comments

Comments
 (0)