Skip to content

Commit 5d11fc5

Browse files
authored
Fix comparison error when replace (#3941)
ADO: 33519015 What I did Ignore the backend table when replace. How I did it Remove table tcomparison in config replace How to verify it Unit test
1 parent f6d6d9a commit 5d11fc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generic_config_updater/generic_updater.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ def replace(self, target_config):
181181

182182
self.logger.log_notice("Verifying config replacement is reflected on ConfigDB.")
183183
new_config = self.config_wrapper.get_config_db_as_json()
184+
self.patch_applier.changeapplier.remove_backend_tables_from_config(target_config)
185+
self.patch_applier.changeapplier.remove_backend_tables_from_config(new_config)
184186
if not (self.patch_wrapper.verify_same_json(target_config, new_config)):
185187
raise GenericConfigUpdaterError(f"After replacing config, there is still some parts not updated")
186188

0 commit comments

Comments
 (0)