diff --git a/hpe3parclient/showport_parser.py b/hpe3parclient/showport_parser.py index d57e27ed..af2d7792 100644 --- a/hpe3parclient/showport_parser.py +++ b/hpe3parclient/showport_parser.py @@ -60,6 +60,9 @@ def parseShowport(self, port_show_output): # and the number of entries returned. We don't want those port_show_output = port_show_output[0:-2] + if not port_show_output: + return new_ports + # The first array in the # ports output list is the headers headers = port_show_output.pop(0).split(',')