File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
docs/docsite/rst/porting_guides Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,26 @@ This can be resolved by removing the unnecessary quotes:
326
326
that: inventory_hostname is defined and inventory_hostname | length > 0
327
327
328
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
+
329
349
Example - Jinja Order of Operations
330
350
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
331
351
You can’t perform that action at this time.
0 commit comments