def _parse_conf(conf_file=default_conf):
    ret = {}
    # ret = []
    with salt.utils.fopen(conf_file, 'r') as ifile:
        for line in ifile:
            line = line.strip()
            if not line:
                continue
            if line.startswith('#'):
                continue
            splitline = line.split(' ', 1)
            ret[splitline[0]] = splitline[1]
    return ret
Parse a logadm configuration file.
dataset/ETHPy150Open saltstack/salt/salt/modules/logadm.py/_parse_conf