Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
152 stars 65 forks source link

Optional source param for blob trigger #220

Closed hallvictoria closed 4 months ago

hallvictoria commented 4 months ago

Previously, the source param was required and set to a default value of BlobSource.LOGS_AND_CONTAINER_SCAN. This caused an error when indexing the blob trigger function saying: Could not convert 'LOGS_AND_CONTAINER_SCAN' to BlobTriggerSource. Error converting value "LOGS_AND_CONTAINER_SCAN" to type 'Microsoft.Azure.WebJobs.BlobTriggerSource'. Path 'source', line 1, position 184. Requested value 'LOGS_AND_CONTAINER_SCAN' was not found.

This fix addresses that issue.