#517 Fix find_images_to_rebuild.py with no images
Merged 4 years ago by lucarval. Opened 4 years ago by lucarval.
lucarval/freshmaker fix-find-images-to-rebuild  into  master

@@ -39,13 +39,15 @@ 

  db.session.commit()

  

  errata = Errata()

+ kwargs = {}

  if container_images:

      EventClass = ManualRebuildWithAdvisoryEvent

+     kwargs['container_images'] = container_images

  else:

      EventClass = ErrataAdvisoryStateChangedEvent

  event = EventClass(

      "fake_message", ErrataAdvisory.from_advisory_id(errata, sys.argv[1]),

-     dry_run=True, container_images=container_images)

+     dry_run=True, **kwargs)

  

  handler = RebuildImagesOnRPMAdvisoryChange()

  with patch("freshmaker.consumer.get_global_consumer"):

Pull-Request has been merged by lucarval

4 years ago