code: def get_pending_component_servicing():
      '''
      Determine whether there are pending Component Based Servicing tasks that
      require a reboot.
  
      .. versionadded:: 2016.11.0
  
      Returns:
          bool: ``True`` if there are pending Component Based Servicing tasks,
          otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.get_pending_component_servicing
      '''
      key = r'SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending'
  
      # So long as the registry key exists, a reboot is pending.
      if __utils__['reg.key_exists']('HKLM', key):
          log.debug('Key exists: %s', key)
          return True
      else:
          log.debug('Key does not exist: %s', key)
  
      return Falsf get_pending_component_servicing():
      '''
      Determine whether there are pending Component Based Servicing tasks that
      require a reboot.
  
      .. versionadded:: 2016.11.0
  
      Returns:
          bool: ``True`` if there are pending Component Based Servicing tasks,
          otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.get_pending_component_servicing
      '''
      key = r'SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending'
  
      # So long as the registry key exists, a reboot is pending.
      if __utils__['reg.key_exists']('HKLM', key):
          log.debug('Key exists: %s', key)
          return True
      else:
          log.debug('Key does not exist: %s', key)
  
      return False
docs: Determine whether there are pending Component Based Servicing tasks that
      require a reboot.
  
      .. versionadded:: 2016.11.0
  
      Returns:
          bool: ``True`` if there are pending Component Based Servicing tasks,
          otherwise ``False``
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' system.get_pending_component_servicing