Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix project_environment docs example and formatting. #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading