code: def reboot(name, call=None):
      '''
      reboot a machine by name
      :param name: name given to the machine
      :param call: call value in this case is 'action'
      :return: true if successful
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -a reboot vm_name
      '''
      node = get_node(name)
      ret = take_action(name=name, call=call, method='POST',
                        command='my/machines/{0}'.format(node['id']),
                        location=node['location'], data={'action': 'reboot'})
      return ret[0] in VALID_RESPONSE_CODEf reboot(name, call=None):
      '''
      reboot a machine by name
      :param name: name given to the machine
      :param call: call value in this case is 'action'
      :return: true if successful
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -a reboot vm_name
      '''
      node = get_node(name)
      ret = take_action(name=name, call=call, method='POST',
                        command='my/machines/{0}'.format(node['id']),
                        location=node['location'], data={'action': 'reboot'})
      return ret[0] in VALID_RESPONSE_CODES
docs: reboot a machine by name
      :param name: name given to the machine
      :param call: call value in this case is 'action'
      :return: true if successful
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-cloud -a reboot vm_name