code: def get_section(file_name, section, separator='='):
      '''
      Retrieve a section from an ini file. Returns the section as dictionary. If
      the section is not found, an empty dictionary is returned.
  
      API Example:
  
      .. code-block:: python
  
          import salt
          sc = salt.client.get_local_client()
          sc.cmd('target', 'ini.get_section',
                 [path_to_ini_file, section_name])
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ini.get_section /path/to/ini section_name
      '''
      inifile = _Ini.get_ini_file(file_name, separator=separator)
      ret = {}
      for key, value in six.iteritems(inifile.get(section, {})):
          if key[0] != '#':
              ret.update({key: value})
      return ref get_section(file_name, section, separator='='):
      '''
      Retrieve a section from an ini file. Returns the section as dictionary. If
      the section is not found, an empty dictionary is returned.
  
      API Example:
  
      .. code-block:: python
  
          import salt
          sc = salt.client.get_local_client()
          sc.cmd('target', 'ini.get_section',
                 [path_to_ini_file, section_name])
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ini.get_section /path/to/ini section_name
      '''
      inifile = _Ini.get_ini_file(file_name, separator=separator)
      ret = {}
      for key, value in six.iteritems(inifile.get(section, {})):
          if key[0] != '#':
              ret.update({key: value})
      return ret
docs: Retrieve a section from an ini file. Returns the section as dictionary. If
      the section is not found, an empty dictionary is returned.
  
      API Example:
  
      .. code-block:: python
  
          import salt
          sc = salt.client.get_local_client()
          sc.cmd('target', 'ini.get_section',
                 [path_to_ini_file, section_name])
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ini.get_section /path/to/ini section_name