From c38c7791436cdf3eef18a4ecb3f67303c2490636 Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Wed, 9 Oct 2024 09:41:43 -0500 Subject: [PATCH] allowing both BlobSource and string source values --- azure/functions/decorators/blob.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure/functions/decorators/blob.py b/azure/functions/decorators/blob.py index bd2861fa..eaad9220 100644 --- a/azure/functions/decorators/blob.py +++ b/azure/functions/decorators/blob.py @@ -17,7 +17,10 @@ def __init__(self, **kwargs): self.path = path self.connection = connection - self.source = source.value if source else None + if type(source) is BlobSource: + self.source = source.value if source else None + else: + self.source = source super().__init__(name=name, data_type=data_type) @staticmethod