openstack-ansible/releasenotes/notes/inventory-main-function-arguments-8c43e4c7175937d3.yaml
Nolan Brubaker ca7df2fa3f Use detailed arguments for main function
The previous behavior for main took an arbitrary dictionary and looked
for keys within it. To decouple the main function from the args
function, this change instead formalizes the names for the arguments
to main, allowing for documentation of the expectations.

Since Ansible's default expected argument is `--list` and that would
collide with the Python `list` builtin function, the `kwargs` argument
is added to act as a catch-all. In practice, while Ansible passes the
list argument in, it does not change the script's behavior.

Change-Id: I8a4c677b44b7c0fc6d95c0a5213306165b79971d
2016-09-28 17:00:36 -04:00

7 lines
227 B
YAML

---
deprecations:
- The ``main`` function in ``dynamic_inventory.py`` now
takes named arguments instead of dictionary. This is to support
future code changes that will move construction logic into
separate files.