Skip to content

Commit 999e70d

Browse files
committed
fix: fix some func names after upgrading goawx dep
1 parent cdf3fd3 commit 999e70d

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

awx/data_source_project_role.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func dataSourceProjectRolesRead(ctx context.Context, d *schema.ResourceData, m i
5656

5757
proj_id := d.Get("project_id").(int)
5858

59-
Project, err := client.ProjectService.GetProjectById(proj_id, params)
59+
Project, err := client.ProjectService.GetProjectByID(proj_id, params)
6060
if err != nil {
6161
return buildDiagnosticsMessage(
6262
"Get: Fail to fetch Project",

awx/resource_notification_template.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func resourceNotificationTemplateUpdate(ctx context.Context, d *schema.ResourceD
105105
}
106106

107107
params := make(map[string]string)
108-
_, err := awxService.GetById(id, params)
108+
_, err := awxService.GetByID(id, params)
109109
if err != nil {
110110
return buildDiagNotFoundFail("notification_template", id, err)
111111
}
@@ -150,7 +150,7 @@ func resourceNotificationTemplateRead(ctx context.Context, d *schema.ResourceDat
150150
return diags
151151
}
152152

153-
res, err := awxService.GetById(id, make(map[string]string))
153+
res, err := awxService.GetByID(id, make(map[string]string))
154154
if err != nil {
155155
return buildDiagNotFoundFail("notification_template", id, err)
156156

awx/resource_project.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func resourceProjectRead(ctx context.Context, d *schema.ResourceData, m interfac
214214
return diags
215215
}
216216

217-
res, err := awxService.GetProjectById(id, make(map[string]string))
217+
res, err := awxService.GetProjectByID(id, make(map[string]string))
218218
if err != nil {
219219
return buildDiagNotFoundFail("project", id, err)
220220
}
@@ -234,7 +234,7 @@ func resourceProjectDelete(ctx context.Context, d *schema.ResourceData, m interf
234234
return diags
235235
}
236236

237-
res, err := awxService.GetProjectById(id, make(map[string]string))
237+
res, err := awxService.GetProjectByID(id, make(map[string]string))
238238
if err != nil {
239239
d.SetId("")
240240
return buildDiagNotFoundFail("project", id, err)

awx/resource_schedule.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func resourceScheduleUpdate(ctx context.Context, d *schema.ResourceData, m inter
9999
}
100100

101101
params := make(map[string]string)
102-
_, err := awxService.GetById(id, params)
102+
_, err := awxService.GetByID(id, params)
103103
if err != nil {
104104
return buildDiagNotFoundFail("schedule", id, err)
105105
}
@@ -133,7 +133,7 @@ func resourceScheduleRead(ctx context.Context, d *schema.ResourceData, m interfa
133133
return diags
134134
}
135135

136-
res, err := awxService.GetById(id, make(map[string]string))
136+
res, err := awxService.GetByID(id, make(map[string]string))
137137
if err != nil {
138138
return buildDiagNotFoundFail("schedule", id, err)
139139

awx/resource_team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func resourceTeamRead(ctx context.Context, d *schema.ResourceData, m interface{}
227227
return diags
228228
}
229229

230-
team, err := awxService.GetTeamById(id, make(map[string]string))
230+
team, err := awxService.GetTeamByID(id, make(map[string]string))
231231
if err != nil {
232232
return buildDiagNotFoundFail("team", id, err)
233233
}

0 commit comments

Comments
 (0)