Skip to content

Commit

Permalink
[DPB]Fixing typo in config breakout output (#2802)
Browse files Browse the repository at this point in the history
#### What I did
Fixed typo in config breakout output. Fixed dependecies to dependencies

#### How I did it
Fixed typo

#### How to verify it
Modified UT to align
  • Loading branch information
dgsudharsan authored Apr 20, 2023
1 parent ada603c commit bee593e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ def breakout_Ports(cm, delPorts=list(), portJson=dict(), force=False, \
# check if DPB failed
if ret == False:
if not force and deps:
click.echo("Dependecies Exist. No further action will be taken")
click.echo("*** Printing dependecies ***")
click.echo("Dependencies Exist. No further action will be taken")
click.echo("*** Printing dependencies ***")
for dep in deps:
click.echo(dep)
sys.exit(0)
Expand Down
6 changes: 3 additions & 3 deletions tests/config_dpb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def test_config_breakout_verbose(self, sonic_db):

print(result.exit_code, result.output)
assert result.exit_code == 0
assert 'Dependecies Exist.' in result.output
assert 'Dependencies Exist.' in result.output

# verbose must be set while creating instance of ConfigMgmt class
calls = [mock.call(True)]
Expand Down Expand Up @@ -539,8 +539,8 @@ def config_dpb_port8_2x50G_1x100G():

print(result.exit_code, result.output)
assert result.exit_code == 0
assert 'Dependecies Exist.' in result.output
assert 'Printing dependecies' in result.output
assert 'Dependencies Exist.' in result.output
assert 'Printing dependencies' in result.output
assert 'NO-NSW-PACL-V4' in result.output

brk_cfg_table = db.cfgdb.get_table('BREAKOUT_CFG')
Expand Down

0 comments on commit bee593e

Please sign in to comment.