From fcfa115cd1b8ddfe78ffa0805cc1fd6e3b8b8c3d Mon Sep 17 00:00:00 2001 From: Kebo Liu Date: Sat, 2 Apr 2022 15:43:36 +0800 Subject: [PATCH] fix error introduced by rebase Signed-off-by: Kebo Liu --- .../sonic_platform/device_data.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/device_data.py b/platform/mellanox/mlnx-platform-api/sonic_platform/device_data.py index a533cd6066f5..5b7f4123fff2 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/device_data.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/device_data.py @@ -266,14 +266,6 @@ def get_linecard_max_port_count(cls): return sfp_data.get('max_port_per_line_card', 0) @classmethod - def get_bios_component(cls): - if cls.get_platform_name() in ['x86_64-nvidia_sn2201-r0']: - from .component import ComponentBIOSSN2201 - # For SN2201, special chass is required for handle BIOS - # Currently, only fetching BIOS version is supported - return ComponentBIOSSN2201() - return None - def is_cpu_thermal_control_supported(cls): return cls.get_cpu_thermal_threshold() != (None, None) @@ -290,3 +282,11 @@ def get_cpu_thermal_threshold(cls): return thermal_data.get('cpu_threshold', (None, None)) + @classmethod + def get_bios_component(cls): + if cls.get_platform_name() in ['x86_64-nvidia_sn2201-r0']: + from .component import ComponentBIOSSN2201 + # For SN2201, special chass is required for handle BIOS + # Currently, only fetching BIOS version is supported + return ComponentBIOSSN2201() + return None