Skip to content

Commit 1aac480

Browse files
committed
Initialize state_db to None
1 parent ad7d535 commit 1aac480

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sonic_platform_base/module_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self):
8787
self._thermal_list = []
8888
self._voltage_sensor_list = []
8989
self._current_sensor_list = []
90-
self.state_db = self.initialize_state_db()
90+
self.state_db = None
9191
self.pci_bus_info = None
9292

9393
# List of SfpBase-derived objects representing all sfps
@@ -97,6 +97,8 @@ def __init__(self):
9797
# List of ASIC-derived objects representing all ASICs
9898
# visibile in PCI domain on the module
9999
self._asic_list = []
100+
101+
self.state_db = self.initialize_state_db()
100102

101103
def initialize_state_db(self):
102104
"""

0 commit comments

Comments
 (0)