azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

[EventHubs] check for any non-None values in amqp header/properties

Open swathipil opened this issue 3 years ago • 1 comments

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.

swathipil avatar Nov 11 '22 00:11 swathipil

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-eventhub

azure-sdk avatar Nov 11 '22 00:11 azure-sdk

/azp run python - eventhub - tests

swathipil avatar Nov 14 '22 21:11 swathipil

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Nov 14 '22 21:11 azure-pipelines[bot]