internal/worker: add rhsm to ostree resolve job

This commit is contained in:
Sanne Raymaekers 2022-10-20 18:59:52 +02:00
parent c865286fb9
commit e94ea7c995
2 changed files with 4 additions and 0 deletions

View file

@ -55,6 +55,7 @@ func (impl *OSTreeResolveJobImpl) Run(job worker.Job) error {
URL: s.URL,
Ref: s.Ref,
Parent: s.Parent,
RHSM: s.RHSM,
}
ref, checksum, err := ostree.ResolveParams(reqParams)
@ -67,6 +68,7 @@ func (impl *OSTreeResolveJobImpl) Run(job worker.Job) error {
URL: s.URL,
Ref: ref,
Checksum: checksum,
RHSM: s.RHSM,
}
}

View file

@ -260,6 +260,7 @@ type OSTreeResolveSpec struct {
URL string `json:"url"`
Ref string `json:"ref"`
Parent string `json:"parent"`
RHSM bool `json:"rhsm"`
}
type OSTreeResolveJob struct {
@ -270,6 +271,7 @@ type OSTreeResolveResultSpec struct {
URL string `json:"url"`
Ref string `json:"ref"`
Checksum string `json:"checksum"`
RHSM bool `json:"bool"`
}
type OSTreeResolveJobResult struct {