Skip to content

Commit 5793c3f

Browse files
authored
Merge pull request #362 from opsmill/bgi-add-filter-known-issues
Add known issue for jinja filter
2 parents 1a65b90 + 72b1e61 commit 5793c3f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

docs/_templates/sdk_template_reference.j2

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ The following Jinja2 filters from <a href="https://netutils.readthedocs.io">Netu
2525
| {{ filter.name }} | {% if filter.trusted %}{% else %}{% endif %} |
2626
{% endfor %}
2727
<!-- vale on -->
28+
29+
## Known issues
30+
31+
### Unable to combine the map and sort filters (https://github.com/pallets/jinja/issues/2081)
32+
33+
When using the `map` filter with the `sort` filter, you may encounter the following error:
34+
35+
```python
36+
TypeError: 'async_generator' object is not iterable
37+
```
38+
39+
**As a workaround you can use the `list` filter between `map` and `sort` filter.**

docs/docs/python-sdk/reference/templating.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,16 @@ The following Jinja2 filters from <a href="https://netutils.readthedocs.io">Netu
150150
| vlanconfig_to_list | |
151151
| vlanlist_to_config | |
152152
| wildcardmask_to_netmask | |
153-
<!-- vale on -->
153+
<!-- vale on -->
154+
155+
## Known issues
156+
157+
### Unable to combine the map and sort filters (https://github.com/pallets/jinja/issues/2081)
158+
159+
When using the `map` filter with the `sort` filter, you may encounter the following error:
160+
161+
```python
162+
TypeError: 'async_generator' object is not iterable
163+
```
164+
165+
**As a workaround you can use the `list` filter between `map` and `sort` filter.**

0 commit comments

Comments
 (0)