From 9e9a8edfe95d7a4d0b8d8b0ad68ca080e2da8e13 Mon Sep 17 00:00:00 2001 From: Julius Unverfehrt Date: Wed, 23 Feb 2022 09:13:13 +0100 Subject: [PATCH] used black for my purposes --- pyinfra/storage/minio.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pyinfra/storage/minio.py b/pyinfra/storage/minio.py index d331617..b77eae4 100644 --- a/pyinfra/storage/minio.py +++ b/pyinfra/storage/minio.py @@ -34,18 +34,13 @@ def get_minio_client(access_key=None, secret_key=None, backend=None) -> Minio: endpoint = f"{CONFIG.s3.minio.host}:{CONFIG.s3.minio.port}" secure = False - return Minio( - endpoint=endpoint, - access_key=access_key, - secret_key=secret_key, - secure=secure - ) + return Minio(endpoint=endpoint, access_key=access_key, secret_key=secret_key, secure=secure) class MinioHandle(StorageHandle): """Wrapper around a MinIO client that provides operations on the MinIO store required by the service.""" - def __init__(self, backend = None): + def __init__(self, backend=None): """Initializes a MinioHandle""" super().__init__() self.client: Minio = get_minio_client(backend=backend)