Skip to content

Commit

Permalink
Add safeguard for VMs without ext_management_system
Browse files Browse the repository at this point in the history
  • Loading branch information
PanSpagetka committed Mar 14, 2019
1 parent ba10281 commit c979898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/network_topology_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def build_entity_data(entity)
data[:display_kind] = entity_display_type(entity)

if entity.kind_of?(Host) || entity.kind_of?(Vm)
data[:provider] = entity.ext_management_system.name
data[:provider] = entity.try(:ext_management_system).try(:name)
end

data
Expand Down

0 comments on commit c979898

Please sign in to comment.