Skip to content

Commit

Permalink
Fix port description setting in 202305
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasstockner committed Dec 6, 2023
1 parent 6da6f6d commit 5809fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4103,12 +4103,12 @@ def description(ctx, interface_name, interface_desc, verbose):
ctx.fail("Interface name is invalid. Please enter a valid interface name!!")

if ctx.obj['namespace'] is DEFAULT_NAMESPACE:
command = "portconfig -p {} -d '{}'".format(interface_name, interface_desc)
command = ['portconfig', '-p', str(interface_name), '-d', str(interface_desc))
else:
command = "portconfig -p {} -d '{}' -n {}".format(interface_name, interface_desc, ctx.obj['namespace'])
command = ['portconfig', '-p', str(interface_name), '-d', str(interface_desc), '-n', str(ctx.obj['namespace'])

if verbose:
command += " -vv"
command += ["-vv"]
clicommon.run_command(command, display_cmd=verbose)

#
Expand Down

0 comments on commit 5809fdf

Please sign in to comment.