Skip to content

Commit

Permalink
fix: bug fix for issue 819 (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
CHERIANS committed May 16, 2024
1 parent 6b128bf commit 2cd1a68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/provider/datasource_subaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ You must be assigned to the admin or viewer role of the global account, director
"id": schema.StringAttribute{
MarkdownDescription: "The ID of the subaccount.",
Optional: true,
Computed: true,
Validators: []validator.String{
uuidvalidator.ValidUUID(),
stringvalidator.ConflictsWith(path.MatchRoot("region"), path.MatchRoot("subdomain")),
Expand Down Expand Up @@ -95,6 +96,7 @@ You must be assigned to the admin or viewer role of the global account, director
"region": schema.StringAttribute{
MarkdownDescription: "The region in which the subaccount was created.",
Optional: true,
Computed: true,
Validators: []validator.String{
stringvalidator.AlsoRequires(path.MatchRoot("subdomain")),
},
Expand Down Expand Up @@ -131,6 +133,7 @@ You must be assigned to the admin or viewer role of the global account, director
"subdomain": schema.StringAttribute{
MarkdownDescription: "The subdomain that becomes part of the path used to access the authorization tenant of the subaccount. Must be unique within the defined region. Use only letters (a-z), digits (0-9), and hyphens (not at the start or end). Maximum length is 63 characters. Cannot be changed after the subaccount has been created.",
Optional: true,
Computed: true,
Validators: []validator.String{
stringvalidator.AlsoRequires(path.MatchRoot("region")),
},
Expand Down

0 comments on commit 2cd1a68

Please sign in to comment.