def clear_lock(clear_func, role, remote=None, lock_type='update'):
    msg = 'Clearing {0} lock for {1} remotes'.format(lock_type, role)
    if remote:
        msg += ' matching {0}'.format(remote)
    log.debug(msg)
    return clear_func(remote=remote, lock_type=lock_type)
Function to allow non-fileserver functions to clear update locks
dataset/ETHPy150Open saltstack/salt/salt/fileserver/__init__.py/clear_lock