[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 GitHub
parent 020daa9c2a
commit 90a457a3a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ class Fan(FanBase):
def set_speed(self, percent):
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)
# DeviceBase interface methods: