Skip to content

Commit

Permalink
Merge pull request ManageIQ#262 from borod108/bugs/1593202refresh_fail
Browse files Browse the repository at this point in the history
Fix refresh failing on guest device lan collection
  • Loading branch information
agrare authored Jun 21, 2018
2 parents 93e11c7 + 923d54b commit 963ccbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def hardware_guest_devices(persister_hardware, vm, addresses)
profiles = collector.collect_vnic_profiles
vnic_profile = profiles.detect { |p| p.id == profile_id } if profile_id && profiles
network_id = vnic_profile.dig(:network, :id) if vnic_profile
lan = persister.lans.find_by(network_id) if network_id
lan = persister.lans.find_by(:uid_ems => network_id) if network_id

persister.guest_devices.find_or_build_by(
:hardware => persister_hardware,
Expand Down

0 comments on commit 963ccbf

Please sign in to comment.