fix index for portchannel
This commit is contained in:
parent
10238bbb06
commit
be91a5622a
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ def interface_is_portchannel(interface, module):
|
|||
intf_type = get_interface_type(interface)
|
||||
if intf_type == 'ethernet':
|
||||
command = 'show interface ' + interface
|
||||
body = execute_show_command(command, module)[0]
|
||||
body = execute_show_command(command, module)
|
||||
try:
|
||||
interface_table = body[0]['TABLE_interface']['ROW_interface']
|
||||
except (KeyError, AttributeError, IndexError):
|
||||
|
|
Loading…
Reference in a new issue