Skip to content

Commit

Permalink
Merge pull request ManageIQ#11890 from NickLaMuro/fix_tree_node_build…
Browse files Browse the repository at this point in the history
…er_for_miq_templates

Use VmOrTemplate instead of MiqTemplate for lookup
  • Loading branch information
himdel committed Oct 19, 2016
2 parents 440e856 + 54e254e commit 17f5b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/tree_node_builder.rb
Expand Up @@ -124,7 +124,6 @@ def build_id
_("LUN: %{name}") % {:name => object.canonical_name}) },
"MiqScsiTarget" => -> { miq_scsi_target(object.iscsi_name, object.target) },
"MiqServer" => -> { miq_server_node },
"MiqTemplate" => -> { generic_node(object.name, "currentstate-#{object.normalized_state.downcase}.png") },
"MiqAlert" => -> { generic_node(object.description, "miq_alert.png") },
"MiqAction" => -> { miq_action_node },
"MiqEventDefinition" => -> { generic_node(object.description, "event-#{object.name}.png") },
Expand Down Expand Up @@ -164,6 +163,7 @@ def build_id
"Tenant" => -> { generic_node(object.name, "#{object.tenant? ? "tenant" : "project"}.png") },
"VmdbTableEvm" => -> { generic_node(object.name, "vmdbtableevm.png") },
"VmdbIndex" => -> { generic_node(object.name, "vmdbindex.png") },
"VmOrTemplate" => -> { generic_node(object.name, "currentstate-#{object.normalized_state.downcase}.png") },
"Zone" => -> { zone_node },
"Hash" => -> { hash_node },
}.freeze
Expand Down

0 comments on commit 17f5b51

Please sign in to comment.