def parse_driverdisk(rule):
    if '--' not in rule:
        return {'partition': rule}

    parser = argparse.ArgumentParser()
    rules = shlex.split(rule)
    rules.pop(0)
    parser.add_argument('--source', dest='source', action='store')
    parser.add_argument('--biospart', dest='biospart', action='store')

    args = clean_args(vars(parser.parse_args(rules)))
    parser = None
    return args
The subscription identifier, if set, is in the subid attribute.
dataset/ETHPy150Open saltstack/salt/salt/utils/kickstart.py/parse_driverdisk--crossover with--dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_pubsub.py/SubscriptionTest.test_toElementWithSubscriptionIdentifier