def set_restart_freeze(enabled):
 state = salt.utils.mac_utils.validate_enabled(enabled)
 cmd = 'systemsetup -setrestartfreeze {0}'.format(state)
 salt.utils.mac_utils.execute_return_success(cmd)
 return salt.utils.mac_utils.confirm_updated(state, get_restart_freeze, True)

def set_restart_freeze ( enabled ) : state = salt . utils . mac_utils . validate_enabled ( enabled ) cmd = 'systemsetup -setrestartfreeze {0}' . format ( state ) salt . utils . mac_utils . execute_return_success ( cmd ) return salt . utils . mac_utils . confirm_updated ( state , get_restart_freeze , True )
specifies whether the server restarts automatically after a system freeze .