

def get_config():
    "\n    Get the status of all the firewall profiles\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' firewall.get_config\n    "
    profiles = {
        
    }
    curr = None
    cmd = ['netsh', 'advfirewall', 'show', 'allprofiles']
    for line in __salt__['cmd.run'](cmd, python_shell=False).splitlines():
        if (not curr):
            tmp = re.search('(.*) Profile Settings:', line)
            if tmp:
                curr = tmp.group(1)
        elif line.startswith('State'):
            profiles[curr] = (profiles.split()[1] == 'ON')
            curr = None
    return profiles

dataset/ETHPy150Open saltstack/salt/salt/modules/win_firewall.py get_config/VarMisuse@106/194 `line`->`profiles`