@@ -36,8 +36,8 @@ func resourceAppdataDsource() *schema.Resource {
3636 "source_value" : {
3737 Type : schema .TypeString ,
3838 Optional : true ,
39- DiffSuppressFunc : func (k , old , new string , d * schema.ResourceData ) bool {
40- if old != new {
39+ DiffSuppressFunc : func (k , oldValue , newValue string , d * schema.ResourceData ) bool {
40+ if oldValue != newValue {
4141 tflog .Info (context .Background (), "updating source_value is not allowed. plan changes are suppressed" )
4242 }
4343 return d .Id () != ""
@@ -46,8 +46,8 @@ func resourceAppdataDsource() *schema.Resource {
4646 "group_id" : {
4747 Type : schema .TypeString ,
4848 Optional : true ,
49- DiffSuppressFunc : func (k , old , new string , d * schema.ResourceData ) bool {
50- if old != new {
49+ DiffSuppressFunc : func (k , oldValue , newValue string , d * schema.ResourceData ) bool {
50+ if oldValue != newValue {
5151 tflog .Info (context .Background (), "updating group_id is not allowed. plan changes are suppressed" )
5252 }
5353 return d .Id () != ""
@@ -78,6 +78,13 @@ func resourceAppdataDsource() *schema.Resource {
7878 "link_type" : {
7979 Type : schema .TypeString ,
8080 Optional : true ,
81+ DiffSuppressFunc : func (k , oldValue , newValue string , d * schema.ResourceData ) bool {
82+ tflog .Info (context .Background (), "In DiffSuppressFunc of link_type" )
83+ if oldValue != newValue {
84+ tflog .Info (context .Background (), "updating link_type is not allowed. plan changes are suppressed" )
85+ }
86+ return d .Id () != ""
87+ },
8188 },
8289 "staging_mount_base" : {
8390 Type : schema .TypeString ,
@@ -304,6 +311,12 @@ func resourceAppdataDsource() *schema.Resource {
304311 "sync_parameters" : {
305312 Type : schema .TypeString ,
306313 Optional : true ,
314+ DiffSuppressFunc : func (k , oldValue , newValue string , d * schema.ResourceData ) bool {
315+ if oldValue != newValue {
316+ tflog .Info (context .Background (), "updating sync_parameters is not allowed. plan changes are suppressed" )
317+ }
318+ return d .Id () != ""
319+ },
307320 },
308321 // Output
309322 "id" : {
0 commit comments