ansible/changelogs/fragments/advanced-host-list-ref-before-assignment.yml
Rick Elrod aae5bc5b9e
[advanced_host_list] 100% coverage + fix a bug ()
Change:
- Tests for advanced_host_list; it is now at 100% coverage.
- There was a typo (host vs hostnames) where when the host pattern
  failed to parse, instead of treating the name as a literal as
  intended, it would trigger UnboundLocalError. This didn't fatal
  as there's a global "Exception" handler below, but it did lead to
  an ugly error and incorrect behavior.

Test Plan:
- New tests
- Local experimenting

Signed-off-by: Rick Elrod <rick@elrod.me>

* changelog

Signed-off-by: Rick Elrod <rick@elrod.me>

* fix tests

Signed-off-by: Rick Elrod <rick@elrod.me>
2021-04-13 11:26:29 -04:00

2 lines
137 B
YAML

bugfixes:
- advanced_host_list inventory plugin - Fixed variable referenced before assignment when hostname/range could not be parsed.