diff options
Diffstat (limited to 'network/nxos/nxos_vpc_interface.py')
-rw-r--r-- | network/nxos/nxos_vpc_interface.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network/nxos/nxos_vpc_interface.py b/network/nxos/nxos_vpc_interface.py index dcc1c213..0f930cac 100644 --- a/network/nxos/nxos_vpc_interface.py +++ b/network/nxos/nxos_vpc_interface.py @@ -501,7 +501,7 @@ def main(): if vpc: mapping = get_existing_portchannel_to_vpc_mappings(module) - if vpc in mapping.keys() and portchannel != mapping[vpc].strip('Po'): + if vpc in mapping and portchannel != mapping[vpc].strip('Po'): module.fail_json(msg="This vpc is already configured on " "another portchannel. Remove it first " "before trying to assign it here. ", |