We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5187df7 commit 3579eb0Copy full SHA for 3579eb0
docs/docsite/rst/porting_guides/porting_guide_core_2.19.rst
@@ -326,6 +326,26 @@ This can be resolved by removing the unnecessary quotes:
326
that: inventory_hostname is defined and inventory_hostname | length > 0
327
328
329
+Example - Expression Syntax Error
330
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
331
+
332
+Previous Ansible releases could mask some expression syntax errors as a truthy result.
333
334
+.. code-block:: yaml+jinja
335
336
+ - assert:
337
+ that: 1 == 2,
338
+ # ^ invalid comma
339
340
341
+The error reported is::
342
343
+ Syntax error in expression: chunk after expression
344
345
346
+This can be resolved by removing the invalid comma after the expression.
347
348
349
Example - Jinja Order of Operations
350
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
351
0 commit comments