diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py b/platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py index c1d93b8ffdac..b5ca79286d1f 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py @@ -113,7 +113,6 @@ def initialize_fan(self): def initialize_sfp(self): from sonic_platform.sfp import SFP - from sonic_platform.sfp import initialize_sdk_handle self.sfp_module = SFP @@ -137,6 +136,7 @@ def initialize_sfp(self): def get_sdk_handle(self): if not self.sdk_handle: + from sonic_platform.sfp import initialize_sdk_handle self.sdk_handle = initialize_sdk_handle() if self.sdk_handle is None: logger.log_error('Failed to open SDK handle')