Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPB]Fixing typo in config breakout output #2802

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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