def clear_lock(backend=None, remote=None):
 fileserver = salt.fileserver.Fileserver(__opts__)
 (cleared, errors) = fileserver.clear_lock(back=backend, remote=remote)
 ret = {}
 if cleared:
  ret['cleared'] = cleared
 if errors:
  ret['errors'] = errors
 if (not ret):
  return 'No locks were removed'
 return ret

def clear_lock ( backend = None , remote = None ) : fileserver = salt . fileserver . Fileserver ( __opts__ ) ( cleared , errors ) = fileserver . clear_lock ( back = backend , remote = remote ) ret = { } if cleared : ret [ 'cleared' ] = cleared if errors : ret [ 'errors' ] = errors if ( not ret ) : return 'No locks were removed' return ret
function to allow non-fileserver functions to clear update locks clear_func a function reference .