worker/server: rename JobStatus() to JobInfo()
Since the `jobStatus` functions return a `JobInfo` struct that contains the `JobStatus`, it makes sense to rename the function names for the sake of consistency.
This commit is contained in:
parent
95c8657f9e
commit
e5d9d2d045
7 changed files with 51 additions and 51 deletions
|
|
@ -359,7 +359,7 @@ func (api *API) getComposeStatus(compose store.Compose) *composeStatus {
|
|||
|
||||
// All jobs are "osbuild" jobs.
|
||||
var result worker.OSBuildJobResult
|
||||
jobInfo, err := api.workers.OSBuildJobStatus(jobId, &result)
|
||||
jobInfo, err := api.workers.OSBuildJobInfo(jobId, &result)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
@ -2196,7 +2196,7 @@ func (api *API) resolveContainersForImageType(bp blueprint.Blueprint, imageType
|
|||
var result worker.ContainerResolveJobResult
|
||||
|
||||
for {
|
||||
jobInfo, err := api.workers.ContainerResolveJobStatus(jobId, &result)
|
||||
jobInfo, err := api.workers.ContainerResolveJobInfo(jobId, &result)
|
||||
|
||||
if err != nil {
|
||||
return specs, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue