ansible/docs
Toshio Kuratomi 0691475caf
Workaround bug in jinja2-3.0.0 and 3.0.1 (#74795)
Jinja2-3.0.0 and 3.0.1 has a bug where undefined values cannot be
checked to see if they contain a value: https://github.com/pallets/jinja/issues/1448#issuecomment-846029509

We workaround this in two ways, either of which would be sufficient:
* Normalize the data so that choices is an empty iterable when it isn't
  specified in the documentation.  This is what antsibull-docs (and thus
  documentation builds on 2.10+) do.
* Change the logic in the template to check whether choices exists
  before checking containment.  This better expresses the logic at that
  point in the template (if there is a default value but there is not a
  list of choices, then display the default in its own string) so it's
  a good change to make as well.
2021-06-03 15:13:43 -05:00
..
bin Clean up old ansible-test references and code. (#60103) 2019-08-05 13:29:50 -07:00
docsite Product-related updates. (#74463) 2021-05-03 22:10:20 -05:00
man added docs to CLI docstringsadded 2017-03-24 15:52:36 -04:00
templates Workaround bug in jinja2-3.0.0 and 3.0.1 (#74795) 2021-06-03 15:13:43 -05:00