def set_remote_events(enable):
 state = salt.utils.mac_utils.validate_enabled(enable)
 cmd = 'systemsetup -setremoteappleevents {0}'.format(state)
 salt.utils.mac_utils.execute_return_success(cmd)
 return salt.utils.mac_utils.confirm_updated(state, get_remote_events, normalize_ret=True)

def set_remote_events ( enable ) : state = salt . utils . mac_utils . validate_enabled ( enable ) cmd = 'systemsetup -setremoteappleevents {0}' . format ( state ) salt . utils . mac_utils . execute_return_success ( cmd ) return salt . utils . mac_utils . confirm_updated ( state , get_remote_events , normalize_ret = True )
set whether the server responds to events sent by other computers .