def press_pwr_btn(self):
        """Simulates a physical press of the server power button.

        :raises: IloError, on an error from iLO.
        """
        sushy_system = self._get_sushy_system(PROLIANT_SYSTEM_ID)
        try:
            sushy_system.push_power_button(sys_cons.PUSH_POWER_BUTTON_PRESS)
        except sushy.exceptions.SushyError as e:
            msg = (self._('The Redfish controller failed to press power button'
                          ' of server. Error %(error)s') %
                   {'error': str(e)})
            LOG.debug(msg)
            raise exception.IloError(msg)
def press_pwr_btn ( self ) : sushy_system = self . _get_sushy_system ( PROLIANT_SYSTEM_ID ) try : sushy_system . push_power_button ( sys_cons . PUSH_POWER_BUTTON_PRESS ) except sushy . exceptions . SushyError as e : msg = ( self . _ ( 'The Redfish controller failed to press power button' ' of server. Error %(error)s' ) % { 'error' : str ( e ) } ) LOG . debug ( msg ) raise exception . IloError ( msg )
Simulates a physical press of the server power button.

        :raises: IloError, on an error from iLO.