Skip to content

Commit

Permalink
fix(nats_credentials): read account-id and supress locality diff (#2321)
Browse files Browse the repository at this point in the history
Signed-off-by: Jules Casteran <[email protected]>
  • Loading branch information
Codelax authored Dec 19, 2023
1 parent 1021fae commit f346ab0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scaleway/resource_mnq_nats_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ func resourceScalewayMNQNatsCredentials() *schema.Resource {
SchemaVersion: 0,
Schema: map[string]*schema.Schema{
"account_id": {
Type: schema.TypeString,
Required: true,
Description: "ID of the nats account",
Type: schema.TypeString,
Required: true,
Description: "ID of the nats account",
DiffSuppressFunc: diffSuppressFuncLocality,
},
"name": {
Type: schema.TypeString,
Expand Down Expand Up @@ -81,6 +82,7 @@ func resourceScalewayMNQNatsCredentialsRead(ctx context.Context, d *schema.Resou
return diag.FromErr(err)
}

_ = d.Set("account_id", credentials.NatsAccountID)
_ = d.Set("name", credentials.Name)
_ = d.Set("region", region)

Expand Down

0 comments on commit f346ab0

Please sign in to comment.