[Mellanox] Initialize PSU API on both host and docker side (#7016)
There was a change to replace platform utils with sonic platform API in psuutil. However, psu API is not initialized on host side. The PR is to fix it.
This commit is contained in:
parent
97b371ee08
commit
8504c72f14
@ -16,14 +16,12 @@ except ImportError as e:
|
||||
class Platform(PlatformBase):
|
||||
def __init__(self):
|
||||
PlatformBase.__init__(self)
|
||||
self._chassis = Chassis()
|
||||
self._chassis.initialize_psu()
|
||||
self._chassis.initialize_eeprom()
|
||||
if utils.is_host():
|
||||
self._chassis = Chassis()
|
||||
self._chassis.initialize_components()
|
||||
self._chassis.initizalize_system_led()
|
||||
self._chassis.initialize_eeprom()
|
||||
else:
|
||||
self._chassis = Chassis()
|
||||
self._chassis.initialize_psu()
|
||||
self._chassis.initialize_fan()
|
||||
self._chassis.initialize_eeprom()
|
||||
self._chassis.initialize_thermals()
|
||||
|
Reference in New Issue
Block a user