Skip to content

Commit 0b896c6

Browse files
authored
Update main.py
1 parent 72ad4fa commit 0b896c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ def add_portchannel_member(ctx, portchannel_name, port_name):
18711871

18721872
# Don't allow a port to be a member of portchannel if already has PBH bindings
18731873
try:
1874-
pbh_bindings = get_port_pbh_binding(ctx.obj['db_wrap'], port_name, ctx.obj['namespace'])
1874+
pbh_bindings = get_port_pbh_binding(ctx.obj['db_wrap'], port_name, DEFAULT_NAMESPACE)
18751875
if pbh_bindings:
18761876
ctx.fail("Port {} is already bound to following PBH_TABLES: {}".format(port_name, pbh_bindings))
18771877
except Exception as e:

0 commit comments

Comments
 (0)