From 706868c7f8ae3445a4fa55596f42e3b79aaf1847 Mon Sep 17 00:00:00 2001 From: Paul Cieslar Date: Thu, 23 Jun 2016 11:59:58 +0100 Subject: [PATCH] describe_security_groups() support for Boto3 Support for list of filters --- moto/ec2/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moto/ec2/models.py b/moto/ec2/models.py index 40277a660..5c7c35e2f 100644 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -1226,6 +1226,8 @@ class SecurityGroup(TaggedEC2Resource): return True elif is_tag_filter(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 else: attr_name = to_attr(key)