diff --git a/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_network_ports_parser.rb b/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_network_ports_parser.rb index c78cb0bcc8..956e4cbcee 100644 --- a/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_network_ports_parser.rb +++ b/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_network_ports_parser.rb @@ -29,7 +29,7 @@ def parse_physical_switch_ports(physical_switch) def parse_physical_server_ports(port) port_info = port["portInfo"] - physical_ports = port_info["physicalPorts"] + physical_ports = port_info&.dig('physicalPorts') physical_ports&.map do |physical_port| parsed_physical_port = parse_physical_port(physical_port) logical_ports = physical_port["logicalPorts"]