Skip to content

Commit 202e161

Browse files
committed
Release v1.0.2
1 parent e31d87b commit 202e161

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.1
1+
v1.0.2

internal/awx/resource_project.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,8 @@ func setProjectResourceData(d *schema.ResourceData, r *awx.Project) *schema.Reso
283283
if err := d.Set("organization_id", r.Organization); err != nil {
284284
fmt.Println("Error setting organization_id", err)
285285
}
286-
287-
if id, err := strconv.Atoi(r.Credential); err == nil {
288-
if err := d.Set("scm_credential_id", id); err != nil {
289-
fmt.Println("Error setting scm_credential_id", err)
290-
}
286+
if err := d.Set("scm_credential_id", r.Credential); err != nil {
287+
fmt.Println("Error setting scm_credential_id", err)
291288
}
292289
if err := d.Set("scm_update_on_launch", r.ScmUpdateOnLaunch); err != nil {
293290
fmt.Println("Error setting scm_update_on_launch", err)

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919

2020
func main() {
2121
plugin.Serve(&plugin.ServeOpts{
22+
ProviderAddr: "registry.terraform.io/josh-silvas/awx",
2223
ProviderFunc: func() *schema.Provider {
2324
return awx.Provider()
2425
},

tools/goawx/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ type Project struct {
240240
ScmBranch string `json:"scm_branch"`
241241
ScmClean bool `json:"scm_clean"`
242242
ScmDeleteOnUpdate bool `json:"scm_delete_on_update"`
243-
Credential string `json:"credential"`
243+
Credential int `json:"credential"`
244244
Timeout int `json:"timeout"`
245245
LastJobRun time.Time `json:"last_job_run"`
246246
LastJobFailed bool `json:"last_job_failed"`

0 commit comments

Comments
 (0)