Skip to content

Commit

Permalink
add porting guide info for optional module_utils (#73979)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzmahone committed Mar 20, 2021
1 parent abacf6a commit c6cf798
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docsite/rst/porting_guides/porting_guide_core_2.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Other:
* The configuration system now validates the ``choices`` field, so any settings that currently violate it and are currently ignored will now cause an error.
For example, `ANSIBLE_COLLECTIONS_ON_ANSIBLE_VERSION_MISMATCH=0` will now cause an error (valid choices are 'ignore', 'warn' or 'error').
* The ``ansible-galaxy`` command now uses ``resolvelib`` for resolving dependencies. In most cases this should not make a user-facing difference beyond being more performant, but we note it here for posterity and completeness.
* Python ``module_utils`` imports may now be marked as optional during the module payload build by wrapping the ``import`` statement in a ``try`` or ``if`` block. This allows modules to use ``module_utils`` that may not be present in all versions of Ansible or a collection, and to perform arbitrary recovery or fallback actions during module runtime.


Deprecated
==========
Expand Down

0 comments on commit c6cf798

Please sign in to comment.