docs: def _get_config_value(profile, config_name):
      '''
      Helper function that returns a profile's configuration value based on
      the supplied configuration name.
  
      profile
          The profile name that contains configuration information.
  
      config_name
          The configuration item's name to use to return configuration values.
      '''
      config = __salt__['config.option'](profile)
      if not config:
          raise CommandExecutionError(
              'Authentication information could not be found for the '
              '\'{0}\' profile.'.format(profile)
          )
  
      config_value = config.get(config_name)
      if config_value is None:
          raise CommandExecutionError(
              'The \'{0}\' parameter was not found in the \'{1}\' '
              'profile.'.format(
                  config_name,
                  profile
              )
          )
  
      return config_value