worker/koji-finalize: fix result options casting
It's actually a pointer, this caused a panic before, let's fix it. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
0693274ffe
commit
3fcb737243
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ func (impl *KojiFinalizeJobImpl) Run(job worker.Job) error {
|
|||
return fmt.Errorf("error: Koji compose OSBuild job result doesn't contain exactly one target result")
|
||||
}
|
||||
kojiTarget := buildArgs.TargetResults[0]
|
||||
kojiTargetOptions := kojiTarget.Options.(target.KojiTargetResultOptions)
|
||||
kojiTargetOptions := kojiTarget.Options.(*target.KojiTargetResultOptions)
|
||||
|
||||
buildRoots = append(buildRoots, koji.BuildRoot{
|
||||
ID: uint64(i),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue