code: def get_sd_auth(val, sd_auth_pillar_name='serverdensity'):
      '''
      Returns requested Server Density authentication value from pillar.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' serverdensity_device.get_sd_auth <val>
      '''
      sd_pillar = __pillar__.get(sd_auth_pillar_name)
      log.debug('Server Density Pillar: %s', sd_pillar)
      if not sd_pillar:
          log.error('Could not load %s pillar', sd_auth_pillar_name)
          raise CommandExecutionError(
              '{0} pillar is required for authentication'.format(sd_auth_pillar_name)
          )
  
      try:
          return sd_pillar[val]
      except KeyError:
          log.error('Could not find value %s in pillar', val)
          raise CommandExecutionError('{0} value was not found in pillar'.format(val)f get_sd_auth(val, sd_auth_pillar_name='serverdensity'):
      '''
      Returns requested Server Density authentication value from pillar.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' serverdensity_device.get_sd_auth <val>
      '''
      sd_pillar = __pillar__.get(sd_auth_pillar_name)
      log.debug('Server Density Pillar: %s', sd_pillar)
      if not sd_pillar:
          log.error('Could not load %s pillar', sd_auth_pillar_name)
          raise CommandExecutionError(
              '{0} pillar is required for authentication'.format(sd_auth_pillar_name)
          )
  
      try:
          return sd_pillar[val]
      except KeyError:
          log.error('Could not find value %s in pillar', val)
          raise CommandExecutionError('{0} value was not found in pillar'.format(val))
docs: Returns requested Server Density authentication value from pillar.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' serverdensity_device.get_sd_auth <val>