Skip to content

Commit

Permalink
fix typo, syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelmsft committed Sep 2, 2022
1 parent e888493 commit 74b22e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/validated_config_db_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def make_path_value_jsonpatch_compatible(table, key, value):
if type(key) == tuple:
path = JsonPointer.from_parts([table, '|'.join(key)]).path
else:
path = "/{}/{}".format(table, key)
path = JsonPointer.from_parts([table, key]).path
if value == {"NULL" : "NULL"}:
value = {}
return path, value
Expand Down
2 changes: 1 addition & 1 deletion config/vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def add_vlan(db, vid):
if clicommon.check_if_vlanid_exist(db.cfgdb, vlan): # TODO: MISSING CONSTRAINT IN YANG MODEL
ctx.fail("{} already exists".format(vlan))

config_db = ValidatedConfigDBCOnnector(db.cfgdb, ADHOC_VALIDATION)
config_db = ValidatedConfigDBConnector(db.cfgdb, ADHOC_VALIDATION)
try:
config_db.set_entry('VLAN', vlan, {'vlanid': str(vid)})
except ValueError:
Expand Down

0 comments on commit 74b22e5

Please sign in to comment.