def set_power(state='power_on', wait=True, **kwargs):
 if ((state is True) or (state == 'power_on')):
  state = 'on'
 if ((state is False) or (state == 'power_off')):
  state = 'off'
 with _IpmiCommand(**kwargs) as s:
  return s.set_power(state, wait=wait)

def set_power ( state = 'power_on' , wait = True , ** kwargs ) : if ( ( state is True ) or ( state == 'power_on' ) ) : state = 'on' if ( ( state is False ) or ( state == 'power_off' ) ) : state = 'off' with _IpmiCommand ( ** kwargs ) as s : return s . set_power ( state , wait = wait )
request power state change .