code: def reboot(name, conn=None):
      '''
      Reboot a single VM
      '''
      if not conn:
          conn = get_conn()   # pylint: disable=E0602
  
      node = get_node(conn, name)
      if node is None:
          log.error('Unable to find the VM %s', name)
      log.info('Rebooting VM: %s', name)
      ret = conn.reboot_node(node)
      if ret:
          log.info('Rebooted VM: %s', name)
          # Fire reboot action
          __utils__['cloud.fire_event'](
              'event',
              '{0} has been rebooted'.format(name), 'salt-cloud'
              'salt/cloud/{0}/rebooting'.format(name),
              args={'name': name},
              sock_dir=__opts__['sock_dir'],
              transport=__opts__['transport']
          )
          return True
  
      log.error('Failed to reboot VM: %s', name)
      return Falsf reboot(name, conn=None):
      '''
      Reboot a single VM
      '''
      if not conn:
          conn = get_conn()   # pylint: disable=E0602
  
      node = get_node(conn, name)
      if node is None:
          log.error('Unable to find the VM %s', name)
      log.info('Rebooting VM: %s', name)
      ret = conn.reboot_node(node)
      if ret:
          log.info('Rebooted VM: %s', name)
          # Fire reboot action
          __utils__['cloud.fire_event'](
              'event',
              '{0} has been rebooted'.format(name), 'salt-cloud'
              'salt/cloud/{0}/rebooting'.format(name),
              args={'name': name},
              sock_dir=__opts__['sock_dir'],
              transport=__opts__['transport']
          )
          return True
  
      log.error('Failed to reboot VM: %s', name)
      return False
docs: Reboot a single VM