Skip to content

Commit

Permalink
address LGTM
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelmsft committed Sep 23, 2022
1 parent c20651f commit 605cd8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config/validated_config_db_connector.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import jsonpatch
from jsonpointer import JsonPointer
from jsonpatch import JsonPatchConflict

from sonic_py_common import device_info
from generic_config_updater.generic_updater import GenericUpdater, ConfigFormat
from generic_config_updater.gu_common import EmptyTableError, genericUpdaterLogging

def ValidatedConfigDBConnector(config_db_connector):
yang_enabled = device_info.is_yang_config_validation_enabled(config_db_connector)
yang_enabled = True
# yang_enabled = device_info.is_yang_config_validation_enabled(config_db_connector)
yang_enabled = True # TODO: Use above line once yang_enabled is set to True by default in ConfigDB
if yang_enabled:
config_db_connector.set_entry = validated_set_entry
config_db_connector.delete_table = validated_delete_table
Expand Down

0 comments on commit 605cd8c

Please sign in to comment.