osbuild-worker: Correct cast of dnfjson error in depsolve job
This error is failing to parse correctly on the workers as a dnfjson.Error. The old rpmmd.DNFError was returned by pointer, however the internal/dnfjson package returns the Error by value.
This commit is contained in:
parent
ff408aa68f
commit
8d5cdfdd57
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ func (impl *DepsolveJobImpl) Run(job worker.Job) error {
|
|||
result.PackageSpecs, err = impl.depsolve(args.PackageSets, args.ModulePlatformID, args.Arch, args.Releasever)
|
||||
if err != nil {
|
||||
switch e := err.(type) {
|
||||
case *dnfjson.Error:
|
||||
case dnfjson.Error:
|
||||
// Error originates from dnf-json
|
||||
switch e.Kind {
|
||||
case "DepsolveError":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue