Skip to content

Commit

Permalink
Use parse_new_target for miq_vim_broker new event
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jun 14, 2017
1 parent 39d9c0c commit bf433bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_vim_broker_worker/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def drain_event
}.freeze

def on_create_event(ems_id, event)
target_hash, target_class, target_find = ManageIQ::Providers::Vmware::InfraManager::EventParser.obj_update_to_hash(event)
target_hash, target_class, target_find = ManageIQ::Providers::Vmware::InfraManager::EventParser.parse_new_target(event)
if target_hash.nil?
_log.debug("Ignoring refresh for EMS id: [#{ems_id}] on event [#{event[:objType]}-create]")
else
Expand Down

0 comments on commit bf433bb

Please sign in to comment.