Skip to content

Commit

Permalink
Merge pull request #15679 from Ladas/raise_creation_event_batched_job
Browse files Browse the repository at this point in the history
Raise creation event batched job
  • Loading branch information
agrare authored Aug 1, 2017
2 parents 7d10409 + 3565c87 commit 73c1993
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/container_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73c1993

Please sign in to comment.