[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:
parent
73958246eb
commit
d216cfa0cc
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user