azure-sdk-for-python
azure-sdk-for-python copied to clipboard
[EventHubs] check for any non-None values in amqp header/properties
In [this line], we use any() to check if the AmqpAnnotatedMessage.header has any values set. However, 0/False/"" are falsy values and therefore not detected as values by any().
Adding an _any() method to AmqpMessageHeader/AmqpMessageProperties, which returns True if any of the values are not None.
API change check
APIView has identified API level changes in this PR and created following API reviews.
/azp run python - eventhub - tests
Azure Pipelines successfully started running 1 pipeline(s).