Skip to content

Commit

Permalink
Fix db name.
Browse files Browse the repository at this point in the history
  • Loading branch information
xincunli-sonic committed Dec 11, 2024
1 parent 9513ed6 commit 2c1c11c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generic_config_updater/field_operation_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from swsscommon import swsscommon
from utilities_common.constants import DEFAULT_SUPPORTED_FECS_LIST

APPL_DB_NAME = 'APPL_DB'
STATE_DB_NAME = 'STATE_DB'
REDIS_TIMEOUT_MSECS = 0
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
GCU_TABLE_MOD_CONF_FILE = f"{SCRIPT_DIR}/gcu_field_operation_validators.conf.json"
Expand Down Expand Up @@ -141,7 +141,7 @@ def _get_fields_in_patch():


def read_statedb_entry(scope, table, key, field):
state_db = swsscommon.DBConnector(APPL_DB_NAME, REDIS_TIMEOUT_MSECS, True, scope)
state_db = swsscommon.DBConnector(STATE_DB_NAME, REDIS_TIMEOUT_MSECS, True, scope)
tbl = swsscommon.Table(state_db, table)
return tbl.hget(key, field)[1]

Expand Down

0 comments on commit 2c1c11c

Please sign in to comment.