app/controllers/host_controller.rb
# Build the tree object to display the host storage adapter info
Build the tree object to display the host storage adapter info
Build the tree object to display the host storage adapter info
def build_sa_tree
    host_node = TreeNodeBuilder.generic_tree_node(
      "h_#{@host.id}",
      @host.name,
      "host.png",
      _("Host: %{name}") % {:name => @host.name},
      :expand      => true,
      :style_class => "cfme-no-cursor-node"
    )
    host_node[:children] = storage_adapters_node if !@host.hardware.nil? &&
                                                    @host.hardware.storage_adapters.length > 0
    @sa_tree = [host_node].to_json
    session[:tree] = "sa"
    session[:tree_name] = "sa_tree"
  end
def build_sa_tree host_node = TreeNodeBuilder . generic_tree_node ( "h_#{@host.id}" , @host . name , "host.png" , _ ( "Host: %{name}" ) % { :name => @host . name } , :expand => true , :style_class => "cfme-no-cursor-node" ) host_node [ :children ] = storage_adapters_node if ! @host . hardware . nil? && @host . hardware . storage_adapters . length > 0 @sa_tree = [ host_node ] . to_json session [ :tree ] = "sa" session [ :tree_name ] = "sa_tree" end
Build the tree object to display the host storage adapter info
Build the tree object to display the host storage adapter info