def parse_selinux(rule):
    parser = argparse.ArgumentParser()
    rules = shlex.split(rule)
    rules.pop(0)
    parser.add_argument('--disabled', dest='disabled', action='store_true')
    parser.add_argument('--enforcing', dest='enforcing', action='store_true')
    parser.add_argument('--permissive', dest='permissive', action='store_true')

    args = clean_args(vars(parser.parse_args(rules)))
    parser = None
    return args
Called when the template was successfully POSTed to the
dataset/ETHPy150Open saltstack/salt/salt/utils/kickstart.py/parse_selinux--crossover with--dataset/ETHPy150Open anandology/pyjamas/addons/TemplatePanel.py/TemplatePanel.onSaveComplete