code: def get_pending_reboot():
      '''
      Determine whether there is a reboot pending.
  
      .. versionadded:: 2016.11.0
  
      Returns:
          bool: ``True`` if the system is pending reboot, otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.get_pending_reboot
      '''
  
      # Order the checks for reboot pending in most to least likely.
      checks = (get_pending_update,
                get_pending_file_rename,
                get_pending_servermanager,
                get_pending_component_servicing,
                get_reboot_required_witnessed,
                get_pending_computer_name,
                get_pending_domain_join)
  
      for check in checks:
          if check():
              return True
  
      return Falsf get_pending_reboot():
      '''
      Determine whether there is a reboot pending.
  
      .. versionadded:: 2016.11.0
  
      Returns:
          bool: ``True`` if the system is pending reboot, otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.get_pending_reboot
      '''
  
      # Order the checks for reboot pending in most to least likely.
      checks = (get_pending_update,
                get_pending_file_rename,
                get_pending_servermanager,
                get_pending_component_servicing,
                get_reboot_required_witnessed,
                get_pending_computer_name,
                get_pending_domain_join)
  
      for check in checks:
          if check():
              return True
  
      return False
docs: Determine whether there is a reboot pending.
  
      .. versionadded:: 2016.11.0
  
      Returns:
          bool: ``True`` if the system is pending reboot, otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.get_pending_reboot