#309 Limit the LB query using list of container images in case ManualRebuildWithAdvisoryEvent is handled.
Merged by jkaluza. Opened by jkaluza.
jkaluza/freshmaker rebuild-with-advisory  into  master

Download 309.patch

In previous PR, I made it possible to generate and handle ManualRebuildWithAdvisoryEvent in the ErrataAdvisoryRPMSSignedHandler which is responsible for building updated container images as a result of advisory update.

The ManualRebuildWithAdvisoryEvent contains container_images list with NVRs of container images to rebuild. This list is so far not respected by the handler - it would rebuild all the images no matter which ones have been marked for rebuild when triggering manual rebuild.

This PR changes the ErrataAdvisoryRPMsSignedHandler to respect container_images list - it passes this list down to Lightblue class which uses it to get just those container images from Lightblue instead of querying all images in lightblue.

Looks good for me.

Pull-Request has been merged by jkaluza

Metadata