Skip to content

Commit f346ab0

Browse files
authored
fix(nats_credentials): read account-id and supress locality diff (#2321)
Signed-off-by: Jules Casteran <[email protected]>
1 parent 1021fae commit f346ab0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scaleway/resource_mnq_nats_credentials.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ func resourceScalewayMNQNatsCredentials() *schema.Resource {
2121
SchemaVersion: 0,
2222
Schema: map[string]*schema.Schema{
2323
"account_id": {
24-
Type: schema.TypeString,
25-
Required: true,
26-
Description: "ID of the nats account",
24+
Type: schema.TypeString,
25+
Required: true,
26+
Description: "ID of the nats account",
27+
DiffSuppressFunc: diffSuppressFuncLocality,
2728
},
2829
"name": {
2930
Type: schema.TypeString,
@@ -81,6 +82,7 @@ func resourceScalewayMNQNatsCredentialsRead(ctx context.Context, d *schema.Resou
8182
return diag.FromErr(err)
8283
}
8384

85+
_ = d.Set("account_id", credentials.NatsAccountID)
8486
_ = d.Set("name", credentials.Name)
8587
_ = d.Set("region", region)
8688

0 commit comments

Comments
 (0)