app/models/manageiq/providers/lenovo/physical_infra_manager/parser/storage_device_parser.rb
def select_storage_devices(component)
        pci_devices = component.try(:pciDevices).try(:select) { |device| storage_device?(device) }
        addin_cards = component.try(:addinCards).try(:select) { |device| storage_device?(device) }

        devices = []
        devices.concat(pci_devices) if pci_devices.present?
        devices.concat(addin_cards) if addin_cards.present?
        devices
      end
#
# Selects all storage devices.
#   The storage devices could be in `pci_devices` or `addin_cards` prop
#
Selects all storage devices.
The storage devices could be in `pci_devices` or `addin_cards` prop
Selects all storage devices . The storage devices could be in ` pci_devices ` or ` addin_cards ` prop
def select_storage_devices(component)
        pci_devices = component.try(:pciDevices).try(:select) { |device| storage_device?(device) }
        addin_cards = component.try(:addinCards).try(:select) { |device| storage_device?(device) }
        devices = []
        devices.concat(pci_devices) if pci_devices.present?
        devices.concat(addin_cards) if addin_cards.present?
        devices
      end
def select_storage_devices ( component ) pci_devices = component . try ( :pciDevices ) . try ( :select ) { | device | storage_device? ( device ) } addin_cards = component . try ( :addinCards ) . try ( :select ) { | device | storage_device? ( device ) } devices = [ ] devices . concat ( pci_devices ) if pci_devices . present? devices . concat ( addin_cards ) if addin_cards . present? devices end
Selects all storage devices.
Selects all storage devices .
component