Skip to content

Commit

Permalink
Merge pull request ManageIQ#168 from felipedf/port_parser_bug
Browse files Browse the repository at this point in the history
Fix bug when portInfo was null
  • Loading branch information
agrare authored May 9, 2018
2 parents f489f3f + 35fda32 commit 4d68098
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 4d68098

Please sign in to comment.