Skip to content

Commit

Permalink
fix: fix resource project
Browse files Browse the repository at this point in the history
  • Loading branch information
denouche committed Nov 23, 2023
1 parent 7bdf191 commit 6519171
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions awx/resource_project.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
/*
*TBD*
Example Usage
# Example Usage
```hcl
data "awx_organization" "default" {
name = "Default"
}
resource "awx_project" "base_service_config" {
name = "base-service-configuration"
scm_type = "git"
scm_url = "https://github.com/nolte/ansible_playbook-baseline-online-server"
scm_branch = "feature/centos8-v2"
scm_update_on_launch = true
organization_id = data.awx_organization.default.id
}
```
data "awx_organization" "default" {
name = "Default"
}
resource "awx_project" "base_service_config" {
name = "base-service-configuration"
scm_type = "git"
scm_url = "https://github.com/nolte/ansible_playbook-baseline-online-server"
scm_branch = "feature/centos8-v2"
scm_update_on_launch = true
organization_id = data.awx_organization.default.id
}
```
*/
package awx

Expand Down Expand Up @@ -112,8 +113,8 @@ func resourceProject() *schema.Resource {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Allow SCM branch override"
}
Description: "Allow SCM branch override",
},
},
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
Expand Down

0 comments on commit 6519171

Please sign in to comment.