Skip to content

Commit bee593e

Browse files
authored
[DPB]Fixing typo in config breakout output (sonic-net#2802)
#### 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
1 parent ada603c commit bee593e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ def breakout_Ports(cm, delPorts=list(), portJson=dict(), force=False, \
224224
# check if DPB failed
225225
if ret == False:
226226
if not force and deps:
227-
click.echo("Dependecies Exist. No further action will be taken")
228-
click.echo("*** Printing dependecies ***")
227+
click.echo("Dependencies Exist. No further action will be taken")
228+
click.echo("*** Printing dependencies ***")
229229
for dep in deps:
230230
click.echo(dep)
231231
sys.exit(0)

tests/config_dpb_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def test_config_breakout_verbose(self, sonic_db):
397397

398398
print(result.exit_code, result.output)
399399
assert result.exit_code == 0
400-
assert 'Dependecies Exist.' in result.output
400+
assert 'Dependencies Exist.' in result.output
401401

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

540540
print(result.exit_code, result.output)
541541
assert result.exit_code == 0
542-
assert 'Dependecies Exist.' in result.output
543-
assert 'Printing dependecies' in result.output
542+
assert 'Dependencies Exist.' in result.output
543+
assert 'Printing dependencies' in result.output
544544
assert 'NO-NSW-PACL-V4' in result.output
545545

546546
brk_cfg_table = db.cfgdb.get_table('BREAKOUT_CFG')

0 commit comments

Comments
 (0)