[barefoot][sonic-platform] Fix Fan.set_speed (#7763)

Fixed typo

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
This commit is contained in:
Volodymyr Boiko 2021-06-01 19:38:54 +03:00 committed by Qi Luo
parent 202c31ebbe
commit 6a90c09cc7

View File

@ -38,7 +38,7 @@ class Fan(FanBase):
def set_speed(self, percent): def set_speed(self, percent):
def set_fan_speed(client): def set_fan_speed(client):
return client.pltfm_mgr.pltfm_mgr_fan_speed_set(fan, percent) return client.pltfm_mgr.pltfm_mgr_fan_speed_set(self.__num, percent)
return thrift_try(set_fan_speed) return thrift_try(set_fan_speed)
# DeviceBase interface methods: # DeviceBase interface methods: