Skip to content

Commit 39ebfe0

Browse files
author
AzureFunctionsPython
committed
Merge remote-tracking branch 'origin/release/1.21.1' into dev
2 parents 4307c75 + 52a5bbe commit 39ebfe0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

azure/functions/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@
102102
'BlobSource'
103103
)
104104

105-
__version__ = '1.21.0'
105+
__version__ = '1.21.1'

azure/functions/decorators/blob.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self,
1717
**kwargs):
1818
self.path = path
1919
self.connection = connection
20-
self.source = source
20+
self.source = source.value if source else None
2121
super().__init__(name=name, data_type=data_type)
2222

2323
@staticmethod

tests/decorators/test_blob.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_blob_trigger_creation_with_default_specified_source(self):
4242
"name": "req",
4343
"dataType": DataType.UNDEFINED,
4444
"path": "dummy_path",
45-
'source': BlobSource.LOGS_AND_CONTAINER_SCAN,
45+
'source': 'LogsAndContainerScan',
4646
"connection": "dummy_connection"
4747
})
4848

@@ -62,7 +62,7 @@ def test_blob_trigger_creation_with_source_as_string(self):
6262
"name": "req",
6363
"dataType": DataType.UNDEFINED,
6464
"path": "dummy_path",
65-
'source': BlobSource.EVENT_GRID,
65+
'source': 'EventGrid',
6666
"connection": "dummy_connection"
6767
})
6868

@@ -82,7 +82,7 @@ def test_blob_trigger_creation_with_source_as_enum(self):
8282
"name": "req",
8383
"dataType": DataType.UNDEFINED,
8484
"path": "dummy_path",
85-
'source': BlobSource.EVENT_GRID,
85+
'source': 'EventGrid',
8686
"connection": "dummy_connection"
8787
})
8888

tests/decorators/test_decorators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ def test_blob_input_binding():
16281628
"type": BLOB_TRIGGER,
16291629
"name": "req",
16301630
"path": "dummy_path",
1631-
"source": BlobSource.EVENT_GRID,
1631+
"source": 'EventGrid',
16321632
"connection": "dummy_conn"
16331633
})
16341634

0 commit comments

Comments
 (0)