[BFN] Fix 'show platform psustatus' command (#15934)

SONiC CLI command was broken.

admin@sonic:~$ show  platform psustatus 
PSU    Model                        Serial    HW Rev  Voltage (V)    Current (A)      Power (W)  Status    LED
-----  ---------------  ------------------  --------  -------------  -------------  -----------  --------  -----
PSU 1  PFE600-12-054NA  420000956420600006       206  N/A            N/A                  82.00  OK        green
PSU 2  PFE600-12-054NA  420000956420600248       206  N/A            N/A                  60.00  NOT OK    green
This commit is contained in:
Petro Bratash 2023-09-23 10:51:28 +03:00 committed by GitHub
parent 73958246eb
commit d216cfa0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ class Psu(PsuBase):
@cancel_on_sigterm
def get_metric_value(self, metric_name):
return get_metric_value(Psu.__sensors_get(), "PSU%d ".format(self.__index) + metric_name)
return get_metric_value(Psu.__sensors_get(), "PSU{} ".format(self.__index) + metric_name)
@staticmethod
def get_num_psus():