diff --git a/device/celestica/x86_64-cel_e1031-r0/sonic_platform/chassis.py b/device/celestica/x86_64-cel_e1031-r0/sonic_platform/chassis.py index 291ece9862..99eb49ce53 100644 --- a/device/celestica/x86_64-cel_e1031-r0/sonic_platform/chassis.py +++ b/device/celestica/x86_64-cel_e1031-r0/sonic_platform/chassis.py @@ -42,6 +42,7 @@ class Chassis(ChassisBase): """Platform-specific Chassis class""" def __init__(self): + ChassisBase.__init__(self) self.config_data = {} for fant_index in range(0, NUM_FAN_TRAY): for fan_index in range(0, NUM_FAN): @@ -59,7 +60,6 @@ class Chassis(ChassisBase): for index in range(0, NUM_COMPONENT): component = Component(index) self._component_list.append(component) - ChassisBase.__init__(self) self._reboot_cause_path = HOST_REBOOT_CAUSE_PATH if self.__is_host( ) else PMON_REBOOT_CAUSE_PATH diff --git a/device/celestica/x86_64-cel_seastone-r0/sonic_platform/chassis.py b/device/celestica/x86_64-cel_seastone-r0/sonic_platform/chassis.py index 768a15ce22..c9447b56a2 100644 --- a/device/celestica/x86_64-cel_seastone-r0/sonic_platform/chassis.py +++ b/device/celestica/x86_64-cel_seastone-r0/sonic_platform/chassis.py @@ -44,6 +44,7 @@ class Chassis(ChassisBase): """Platform-specific Chassis class""" def __init__(self): + ChassisBase.__init__(self) self.config_data = {} for fant_index in range(0, NUM_FAN_TRAY): for fan_index in range(0, NUM_FAN): @@ -61,7 +62,6 @@ class Chassis(ChassisBase): for index in range(0, NUM_COMPONENT): component = Component(index) self._component_list.append(component) - ChassisBase.__init__(self) self._watchdog = Watchdog() self._eeprom = Tlv() diff --git a/device/celestica/x86_64-cel_seastone-r0/sonic_platform/psu.py b/device/celestica/x86_64-cel_seastone-r0/sonic_platform/psu.py index 7e18827cbf..8558b0b0ca 100644 --- a/device/celestica/x86_64-cel_seastone-r0/sonic_platform/psu.py +++ b/device/celestica/x86_64-cel_seastone-r0/sonic_platform/psu.py @@ -39,6 +39,7 @@ class Psu(PsuBase): """Platform-specific Psu class""" def __init__(self, psu_index): + PsuBase.__init__(self) self.index = psu_index self.green_led_path = GREEN_LED_PATH.format(self.index+1) self.dx010_psu_gpio = [ @@ -52,7 +53,6 @@ class Psu(PsuBase): for fan_index in range(0, PSU_NUM_FAN[self.index]): fan = Fan(fan_index, 0, is_psu_fan=True, psu_index=self.index) self._fan_list.append(fan) - PsuBase.__init__(self) def __read_txt_file(self, file_path): try: