diff --git a/app/models/container_image.rb b/app/models/container_image.rb index 322e1d5ff85..facd9337b4a 100644 --- a/app/models/container_image.rb +++ b/app/models/container_image.rb @@ -75,6 +75,12 @@ def perform_metadata_scan(ost) scan_via_miq_vm(miq_cnt_group, ost) end + def self.raise_creation_events(container_image_ids) + where(:id => container_image_ids).find_each do |record| + MiqEvent.raise_evm_event(record, 'containerimage_created', {}) + end + end + def raise_creation_event MiqEvent.raise_evm_event(self, 'containerimage_created', {}) end