Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
gigerdo committed Sep 11, 2024
1 parent 5036c45 commit ae5f6b9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions docs/resources/organization.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ resource "ec_organization" "my_org" {
deployment_roles = [
# A role can be given for all deployments
{
role = "editor"
role = "editor"
for_all_deployments = true
},
# Or just for specific deployments
{
role = "editor"
role = "editor"
deployment_ids = ["ce03a623751b4fc98d48400fec58b9c0"]
}
]
Expand All @@ -61,13 +61,13 @@ resource "ec_organization" "my_org" {
project_elasticsearch_roles = [
# A role can be given for all projects
{
role = "admin"
role = "admin"
for_all_projects = true
},
# Or just for specific projects
{
role = "admin"
role = "admin"
project_ids = ["c866244b611442d585e23a0cc8c9434c"]
}
]
Expand All @@ -94,7 +94,7 @@ locals {
deployment_admin = {
deployment_roles = [
{
role = "admin"
role = "admin"
for_all_deployments = true
}
]
Expand All @@ -103,7 +103,7 @@ locals {
deployment_viewer = {
deployment_roles = [
{
role = "viewer"
role = "viewer"
for_all_deployments = true
}
]
Expand All @@ -112,8 +112,8 @@ locals {
resource "ec_organization" "my_org" {
members = {
"[email protected]" = local.deployment_admin
"[email protected]" = local.deployment_viewer
"[email protected]" = local.deployment_admin
"[email protected]" = local.deployment_viewer
"[email protected]" = local.deployment_viewer
}
}
Expand Down
2 changes: 1 addition & 1 deletion ec/ecresource/organizationresource/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func projectRoleAssignmentSchema(roles []string) schema.NestedAttributeObject {
return schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
"role": schema.StringAttribute{
MarkdownDescription: fmt.Sprintf("Assigned role. (Allowed values: %s)", "`" + strings.Join(roles, "`, `") + "`"),
MarkdownDescription: fmt.Sprintf("Assigned role. (Allowed values: %s)", "`"+strings.Join(roles, "`, `")+"`"),
Required: true,
},
"for_all_projects": schema.BoolAttribute{
Expand Down
8 changes: 4 additions & 4 deletions examples/resources/ec_organization/basic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ resource "ec_organization" "my_org" {
deployment_roles = [
# A role can be given for all deployments
{
role = "editor"
role = "editor"
for_all_deployments = true
},

# Or just for specific deployments
{
role = "editor"
role = "editor"
deployment_ids = ["ce03a623751b4fc98d48400fec58b9c0"]
}
]
Expand All @@ -27,13 +27,13 @@ resource "ec_organization" "my_org" {
project_elasticsearch_roles = [
# A role can be given for all projects
{
role = "admin"
role = "admin"
for_all_projects = true
},

# Or just for specific projects
{
role = "admin"
role = "admin"
project_ids = ["c866244b611442d585e23a0cc8c9434c"]
}
]
Expand Down
8 changes: 4 additions & 4 deletions examples/resources/ec_organization/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ locals {
deployment_admin = {
deployment_roles = [
{
role = "admin"
role = "admin"
for_all_deployments = true
}
]
Expand All @@ -12,7 +12,7 @@ locals {
deployment_viewer = {
deployment_roles = [
{
role = "viewer"
role = "viewer"
for_all_deployments = true
}
]
Expand All @@ -21,8 +21,8 @@ locals {

resource "ec_organization" "my_org" {
members = {
"[email protected]" = local.deployment_admin
"[email protected]" = local.deployment_viewer
"[email protected]" = local.deployment_admin
"[email protected]" = local.deployment_viewer
"[email protected]" = local.deployment_viewer
}
}

0 comments on commit ae5f6b9

Please sign in to comment.