def save(name):
    ret = {'name': name,
           'changes': {},
           'comment': '',
           'result': True}
    tgt_dir = os.path.join(__opts__['cachedir'], 'thorium', 'saves')
    fn_ = os.path.join(tgt_dir, name)
    if not os.path.isdir(tgt_dir):
        os.makedirs(tgt_dir)
    with salt.utils.fopen(fn_, 'w+') as fp_:
        fp_.write(json.dumps(__reg__))
    return ret
Save the register to <salt cachedir>/thorium/saves/<name>
dataset/ETHPy150Open saltstack/salt/salt/thorium/file.py/save