Fix tar error when sending /etc/nginx to BW

This commit is contained in:
Théophile Diot 2023-01-05 09:28:26 +01:00
parent 9edf789ab8
commit d143720750
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class ApiCaller:
ret = True
with BytesIO() as tgz:
with taropen(mode="w:gz", fileobj=tgz, dereference=True) as tf:
tf.add(path, arcname=sep)
tf.add(path, arcname=".")
tgz.seek(0, 0)
files = {"archive.tar.gz": tgz}
if not self._send_to_apis("POST", url, files=files):