From 93534ce0e12a8698d471be9ca94f490150ac8c00 Mon Sep 17 00:00:00 2001 From: Kebo Liu Date: Sat, 5 Jun 2021 00:40:23 +0800 Subject: [PATCH] [Mellanox] Align PSU name convention returned from psu.get_name platform API (#7783) Make PSU name returned from platform API aligned with the convention "PSU {X}" instead of "PSU{X}". --- platform/mellanox/mlnx-platform-api/sonic_platform/psu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/psu.py b/platform/mellanox/mlnx-platform-api/sonic_platform/psu.py index e357a39141..b6bb8257d0 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/psu.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/psu.py @@ -80,7 +80,7 @@ class Psu(PsuBase): psu_oper_status = "thermal/psu{}_pwr_status".format(self.index) #psu_oper_status should always be present for all platforms self.psu_oper_status = os.path.join(self.psu_path, psu_oper_status) - self._name = "PSU{}".format(psu_index + 1) + self._name = "PSU {}".format(psu_index + 1) if platform in platform_dict_psu: filemap = psu_profile_list[platform_dict_psu[platform]]