File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
localstack-core/localstack/services/events/resource_providers Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,17 @@ class Target(TypedDict):
167
167
168
168
REPEATED_INVOCATION = "repeated_invocation"
169
169
170
+ MATCHING_OPERATIONS = [
171
+ "prefix" ,
172
+ "cidr" ,
173
+ "exists" ,
174
+ "suffix" ,
175
+ "anything-but" ,
176
+ "numeric" ,
177
+ "equals-ignore-case" ,
178
+ "wildcard" ,
179
+ ]
180
+
170
181
171
182
def extract_rule_name (rule_id : str ) -> str :
172
183
return rule_id .rsplit ("|" , maxsplit = 1 )[- 1 ]
@@ -229,12 +240,7 @@ def create(
229
240
def wrap_in_lists (o , ** kwargs ):
230
241
if isinstance (o , dict ):
231
242
for k , v in o .items ():
232
- if not isinstance (v , (dict , list )) and k not in [
233
- "prefix" ,
234
- "cidr" ,
235
- "exists" ,
236
- "suffix" ,
237
- ]:
243
+ if not isinstance (v , (dict , list )) and k not in MATCHING_OPERATIONS :
238
244
o [k ] = [v ]
239
245
return o
240
246
You can’t perform that action at this time.
0 commit comments