Skip to content

Commit

Permalink
allowing both BlobSource and string source values
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoria Hall committed Oct 9, 2024
1 parent c0e1748 commit c38c779
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion azure/functions/decorators/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c38c779

Please sign in to comment.