Skip to content

Commit

Permalink
Fix project_environment docs example and formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Omicron7 committed Dec 5, 2024
1 parent 940ba25 commit 26b3a83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions docs/resources/project_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ resource "semaphoreui_project_environment" "environment" {
}
# environment variables
environment_variables = {
environment = {
KEY1 = "value1"
KEY2 = "value2"
}
Expand Down Expand Up @@ -63,9 +63,7 @@ resource "semaphoreui_project_environment" "environment" {

- `environment` (Map of String) Environment variables.
- `secrets` (Attributes List) Secret variables of either `"var"` or `"env"` type. The `value` is encrypted and will be empty if imported. (see [below for nested schema](#nestedatt--secrets))
- `variables` (Map of String) Extra variables.

Passed to Ansible as extra variables (`--extra-vars`) and Terraform/OpenTofu as variables (`-var`).
- `variables` (Map of String) Extra variables. Passed to Ansible as extra variables (`--extra-vars`) and Terraform/OpenTofu as variables (`-var`).

### Read-Only

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "semaphoreui_project_environment" "environment" {
}

# environment variables
environment_variables = {
environment = {
KEY1 = "value1"
KEY2 = "value2"
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/project_environment_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ A project environment provides a list of extra and environment variables that ca
Required: true,
},
"variables": schema.MapAttribute{
MarkdownDescription: "Extra variables.\n\nPassed to Ansible as extra variables (`--extra-vars`) and Terraform/OpenTofu as variables (`-var`).",
MarkdownDescription: "Extra variables. Passed to Ansible as extra variables (`--extra-vars`) and Terraform/OpenTofu as variables (`-var`).",
ElementType: types.StringType,
Optional: true,
},
Expand Down

0 comments on commit 26b3a83

Please sign in to comment.