Skip to content

Commit

Permalink
[config/config_mgmt.py]: Fix typo and enable test for tablesWithOutYa…
Browse files Browse the repository at this point in the history
…ng() (sonic-net#1012)

Fix typo and enable test for tablesWithOutYang()

Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
  • Loading branch information
Praveen Chaudhary committed Jul 30, 2020
1 parent c6c5be1 commit c0c3cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, source="configDB", debug=False, allowTablesWithoutYang=True):
def __del__(self):
pass

def tablesWithoutYang(self):
def tablesWithOutYang(self):
'''
Return tables loaded in config for which YANG model does not exist.
Expand Down
2 changes: 1 addition & 1 deletion sonic-utilities-tests/config_mgmt_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_table_without_yang(self):
self.updateConfig(curConfig, unknown)
self.writeJson(curConfig, config_mgmt.CONFIG_DB_JSON_FILE)
cm = config_mgmt.ConfigMgmt(source=config_mgmt.CONFIG_DB_JSON_FILE)
#assert "unknown_table" in cm.tablesWithoutYang()
assert "unknown_table" in cm.tablesWithOutYang()
return

def test_search_keys(self):
Expand Down

0 comments on commit c0c3cce

Please sign in to comment.