From 8ea5eb6e009ec400f90501682ef824e35f4c73d6 Mon Sep 17 00:00:00 2001 From: Matthias Bisping Date: Thu, 24 Feb 2022 08:10:21 +0100 Subject: [PATCH] utility file for easy init of storage handels --- pyinfra/storage/storages.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pyinfra/storage/storages.py diff --git a/pyinfra/storage/storages.py b/pyinfra/storage/storages.py new file mode 100644 index 0000000..ae5200c --- /dev/null +++ b/pyinfra/storage/storages.py @@ -0,0 +1,7 @@ +from pyinfra.storage.adapters.azure import AzureStorageAdapter +from pyinfra.storage.clients.azure import get_azure_client +from pyinfra.storage.storage import Storage + + +def get_azure_storage(connection_string=None): + return Storage(AzureStorageAdapter(get_azure_client(connection_string)))