Skip to content

Commit 326f0b3

Browse files
committed
recursive search for block directive fix
1 parent 4ba0b44 commit 326f0b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginxparser_eb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def find_in_model(model, path):
275275
for sub in target:
276276
if sub.key == path[0] or sub.key == [path[0]]:
277277
if isinstance(sub, BlockDirective):
278-
ret_value += find_in_model(sub.value, path[1:])
278+
ret_value += find_in_model(sub, path[1:])
279279
elif isinstance(sub, BaseDirective):
280280
ret_value += [sub]
281281
else:

0 commit comments

Comments
 (0)