Skip to content

Commit

Permalink
fix: editable project slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Dec 21, 2022
1 parent aabfd7f commit 732d54b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Read-Only:
- `release_creation_strategy` (List of Object) (see [below for nested schema](#nestedatt--projects--release_creation_strategy))
- `release_notes_template` (String)
- `servicenow_extension_settings` (List of Object) Provides extension settings for the ServiceNow integration for this project. (see [below for nested schema](#nestedatt--projects--servicenow_extension_settings))
- `slug` (String)
- `slug` (String) A human-readable, unique identifier, used to identify a project.
- `space_id` (String) The space ID associated with this project.
- `template` (List of Object) (see [below for nested schema](#nestedatt--projects--template))
- `tenanted_deployment_participation` (String) The tenanted deployment mode of the resource. Valid account types are `Untenanted`, `TenantedOrUntenanted`, or `Tenanted`.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ resource "octopusdeploy_project" "example" {
- `release_creation_strategy` (Block List, Max: 1) (see [below for nested schema](#nestedblock--release_creation_strategy))
- `release_notes_template` (String)
- `servicenow_extension_settings` (Block List, Max: 1) Provides extension settings for the ServiceNow integration for this project. (see [below for nested schema](#nestedblock--servicenow_extension_settings))
- `slug` (String) A human-readable, unique identifier, used to identify a project.
- `space_id` (String) The space ID associated with this project.
- `template` (Block List) (see [below for nested schema](#nestedblock--template))
- `tenanted_deployment_participation` (String) The tenanted deployment mode of the resource. Valid account types are `Untenanted`, `TenantedOrUntenanted`, or `Tenanted`.
Expand All @@ -100,7 +101,6 @@ resource "octopusdeploy_project" "example" {
### Read-Only

- `deployment_process_id` (String)
- `slug` (String)
- `variable_set_id` (String)

<a id="nestedblock--connectivity_policy"></a>
Expand Down
7 changes: 5 additions & 2 deletions octopusdeploy/schema_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,11 @@ func getProjectSchema() map[string]*schema.Schema {
Type: schema.TypeList,
},
"slug": {
Computed: true,
Type: schema.TypeString,
Computed: true,
Description: "A human-readable, unique identifier, used to identify a project.",
Optional: true,
Type: schema.TypeString,
ValidateDiagFunc: validation.ToDiagFunc(validation.StringIsNotWhiteSpace),
},
"space_id": {
Computed: true,
Expand Down

0 comments on commit 732d54b

Please sign in to comment.