Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelmsft committed Oct 28, 2022
1 parent c257eb9 commit 0bc9fa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/validated_config_db_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def apply_patch(self, gcu_patch, table):

try:
GenericUpdater().apply_patch(patch=gcu_patch, config_format=config_format, verbose=False, dry_run=False, ignore_non_yang_tables=False, ignore_paths=None)
return True
except EmptyTableError:
self.validated_delete_table(table)

Expand All @@ -113,7 +114,7 @@ def validated_mod_entry(self, table, key, value):
op = "remove"

gcu_patch = self.create_gcu_patch(op, table, key, value, mod_entry=True)
self.apply_patch(gcu_patch, table)
return self.apply_patch(gcu_patch, table)

def validated_set_entry(self, table, key, value):
if value is not None:
Expand All @@ -122,4 +123,4 @@ def validated_set_entry(self, table, key, value):
op = "remove"

gcu_patch = self.create_gcu_patch(op, table, key, value)
self.apply_patch(gcu_patch, table)
return self.apply_patch(gcu_patch, table)

0 comments on commit 0bc9fa7

Please sign in to comment.