app/models/manageiq/providers/lenovo/physical_infra_manager/parser/storage_device_parser.rb
def parse_device(device)
        result = parse(device, parent::ParserDictionaryConstants::GUEST_DEVICE)

        result[:uid_ems]     = mount_uuid(device)
        result[:device_name] = device["productName"] ? device["productName"] : device["name"]
        result[:device_type] = "storage"
        result[:firmwares]   = parse_device_firmware(device)
        result[:location]    = device['slotNumber'] ? "Bay #{device['slotNumber']}" : nil

        result
      end
#
# Mount the storage device from a hash object
#
# @param [Hash] device - a hash containing the storage device informations
#
Mount the storage device from a hash object
Mount the storage device from a hash object
def parse_device(device)
        result = parse(device, parent::ParserDictionaryConstants::GUEST_DEVICE)
        result[:uid_ems]     = mount_uuid(device)
        result[:device_name] = device["productName"] ? device["productName"] : device["name"]
        result[:device_type] = "storage"
        result[:firmwares]   = parse_device_firmware(device)
        result[:location]    = device['slotNumber'] ? "Bay #{device['slotNumber']}" : nil
        result
      end
def parse_device ( device ) result = parse ( device , parent :: ParserDictionaryConstants :: GUEST_DEVICE ) result [ :uid_ems ] = mount_uuid ( device ) result [ :device_name ] = device [ "productName" ] ? device [ "productName" ] : device [ "name" ] result [ :device_type ] = "storage" result [ :firmwares ] = parse_device_firmware ( device ) result [ :location ] = device [ 'slotNumber' ] ? "Bay #{device['slotNumber']}" : nil result end
Mount the storage device from a hash object
Mount the storage device from a hash object
device
a hash containing the storage device informations
a hash containing the storage device informations