Fix: Opendal miss tenant id (#10774)
### What problem does this PR solve? as https://github.com/infiniflow/ragflow/pull/10712 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
42fbeb285a
commit
50e93d1528
1 changed files with 5 additions and 5 deletions
|
|
@ -65,20 +65,20 @@ class OpenDALStorage:
|
|||
r = self._operator.write(f"{bucket}/{fnm}", binary)
|
||||
return r
|
||||
|
||||
def put(self, bucket, fnm, binary):
|
||||
def put(self, bucket, fnm, binary, tenant_id=None):
|
||||
self._operator.write(f"{bucket}/{fnm}", binary)
|
||||
|
||||
def get(self, bucket, fnm):
|
||||
def get(self, bucket, fnm, tenant_id=None):
|
||||
return self._operator.read(f"{bucket}/{fnm}")
|
||||
|
||||
def rm(self, bucket, fnm):
|
||||
def rm(self, bucket, fnm, tenant_id=None):
|
||||
self._operator.delete(f"{bucket}/{fnm}")
|
||||
self._operator.__init__()
|
||||
|
||||
def scan(self, bucket, fnm):
|
||||
def scan(self, bucket, fnm, tenant_id=None):
|
||||
return self._operator.scan(f"{bucket}/{fnm}")
|
||||
|
||||
def obj_exist(self, bucket, fnm):
|
||||
def obj_exist(self, bucket, fnm, tenant_id=None):
|
||||
return self._operator.exists(f"{bucket}/{fnm}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue