fixed brokem reference
This commit is contained in:
parent
4189ebb048
commit
d9224b879d
@ -18,7 +18,7 @@ def make_storage_data_loader(storage, bucket_name):
|
||||
def download(payload):
|
||||
object_name = get_object_name(payload)
|
||||
logging.debug(f"Downloading {object_name}...")
|
||||
data = storage.get(bucket_name, object_name)
|
||||
data = storage.get_object(bucket_name, object_name)
|
||||
logging.debug(f"Downloaded {object_name}.")
|
||||
return data
|
||||
|
||||
|
||||
@ -4,10 +4,9 @@ import os
|
||||
from pathlib import Path
|
||||
|
||||
from tqdm import tqdm
|
||||
from pyinfra.config import CONFIG
|
||||
|
||||
from pyinfra.config import CONFIG
|
||||
from pyinfra.storage.storages import get_s3_storage
|
||||
from pyinfra.test.unit_tests.conftest import bucket_name
|
||||
from pyinfra.utils.file import dossier_id_and_file_id_to_compressed_storage_pdf_object_name
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user