network/module_utils/network_lsr
Noriko Hosoi 023ecbd027 Collections - workaround for the module_utils path finding issue in ansible 2.9
The details of the issue is described in this ansible issue:
   https://github.com/ansible/ansible/issues/68361

The workaround contains 2 changes.
1) Advice from @sivel:
   replacing, e.g.,
     from ansible.module_utils.network_lsr.nm.provider import NetworkManagerProvider
   with
     from ansible.module_utils.network_lsr.nm import provider
   and then use provider.NetworkManagerProvider
2) In the later module_utils path finding path, gi.require_version("NM", "1.0")
   in module_utils/network_lsr/nm/client.py fails with "ValueError: Namespace
   NM not available" on the control node. By ignoring the exception, the failure
   is worked around. Please note that the missing package issue never occurs
   on the managed nodes since in case of "nm", the NetworkManager package is
   installed in the network role.

Signed-off-by: Noriko Hosoi <nhosoi@redhat.com>
2021-01-14 17:04:10 -05:00
..
nm Collections - workaround for the module_utils path finding issue in ansible 2.9 2021-01-14 17:04:10 -05:00
__init__.py Modularize role 2018-08-15 10:04:47 +02:00
argument_validator.py Add support for ethtool coalesce settings 2021-01-09 11:02:07 +08:00
ethtool.py ethtool: use GPERMADDR instead the ethtool command line tool 2020-05-15 16:11:56 +02:00
nm_provider.py Add support for ethtool coalesce settings 2021-01-09 11:02:07 +08:00
utils.py RHELPLAN-56586 - sync collections related changes from template to network role 2020-10-23 13:35:14 +08:00