Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
belokobylskii.i committed Dec 6, 2024
1 parent f44fe05 commit 0d83cf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions selectel/resource_selectel_mks_cluster_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,18 +180,18 @@ func resourceMKSClusterV1() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Default: "",
DiffSuppressFunc: func(_, old, new string, _ *schema.ResourceData) bool {
DiffSuppressFunc: func(_, oldVersion, newVersion string, _ *schema.ResourceData) bool {
// Ignore diff on default value from API.
return old == "sub" && new == ""
return oldVersion == "sub" && newVersion == ""
},
},
"groups_claim": {
Type: schema.TypeString,
Optional: true,
Default: "",
DiffSuppressFunc: func(_, old, new string, _ *schema.ResourceData) bool {
DiffSuppressFunc: func(_, oldVersion, newVersion string, _ *schema.ResourceData) bool {
// Ignore diff on default value from API.
return old == "groups" && new == ""
return oldVersion == "groups" && newVersion == ""
},
},
},
Expand Down

0 comments on commit 0d83cf9

Please sign in to comment.