fixed brokem reference

This commit is contained in:
Matthias Bisping 2022-02-25 12:52:57 +01:00
parent 4189ebb048
commit d9224b879d
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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