describe_security_groups() support for Boto3
Support for list of filters
This commit is contained in:
parent
a9e54482fc
commit
706868c7f8
1 changed files with 2 additions and 0 deletions
|
|
@ -1226,6 +1226,8 @@ class SecurityGroup(TaggedEC2Resource):
|
||||||
return True
|
return True
|
||||||
elif is_tag_filter(key):
|
elif is_tag_filter(key):
|
||||||
tag_value = self.get_filter_value(key)
|
tag_value = self.get_filter_value(key)
|
||||||
|
if isinstance(filter_value, list):
|
||||||
|
return any(v in tag_value for v in filter_value)
|
||||||
return tag_value in filter_value
|
return tag_value in filter_value
|
||||||
else:
|
else:
|
||||||
attr_name = to_attr(key)
|
attr_name = to_attr(key)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue