ca7df2fa3f
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
7 lines
227 B
YAML
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.
|