moto/moto/ec2
Brian Pandola 38124ab1c9
Fix ec2 filter by empty tag value (#3605)
* Fix ec2 filter by empty tag value

Return `None` instead of an empty string when the tag key does not exist
and replace the falsy check with a more explicit `is None`, which allows
empty string values to correctly pass through the filter comparator.

Behavior confirmed against a real AWS backend.

Closes #3603

* Make test case more explicit

Test case now pulled directly from the issue report (#3603).

Co-authored-by: Bert Blommers <bblommers@users.noreply.github.com>
2021-01-24 12:00:25 +00:00
..
resources DescribeInstanceTypeOfferings - script that hardcodes all offerings 2020-12-02 14:41:24 +00:00
responses Add TagSpecification support to ec2:CreateImage (#3604) 2021-01-23 12:57:34 +00:00
__init__.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
exceptions.py Add TagSpecification support to ec2:CreateImage (#3604) 2021-01-23 12:57:34 +00:00
models.py Fix ec2 filter by empty tag value (#3605) 2021-01-24 12:00:25 +00:00
urls.py Fix deprecation warning. 2020-04-19 19:12:48 -07:00
utils.py Fix ec2 filter by empty tag value (#3605) 2021-01-24 12:00:25 +00:00