Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ansible.module_utils._text by ansible.module_utils.common.text.converters #38

Merged
merged 2 commits into from
Jun 27, 2021

Conversation

felixfontein
Copy link
Collaborator

SUMMARY

While the private API ansible.module_utils._text was the default place to get to_text, to_bytes and to_native for a long time, at least since Ansible 2.9 there's a non-private alternative: ansible.module_utils.common.text.converters. So let's use it :)

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

various plugins

@codecov
Copy link

codecov bot commented Jun 26, 2021

Codecov Report

Merging #38 (abd00a6) into main (39dcf4a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #38   +/-   ##
=======================================
  Coverage   80.23%   80.23%           
=======================================
  Files          11       11           
  Lines        1189     1189           
  Branches      161      161           
=======================================
  Hits          954      954           
  Misses        173      173           
  Partials       62       62           
Impacted Files Coverage Δ
plugins/module_utils/routeros.py 21.17% <100.00%> (ø)
plugins/modules/api.py 75.70% <100.00%> (ø)
tests/unit/plugins/modules/utils.py 94.11% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39dcf4a...abd00a6. Read the comment docs.

@felixfontein felixfontein requested a review from heuels June 26, 2021 13:05
@felixfontein felixfontein merged commit 937aa0d into ansible-collections:main Jun 27, 2021
@felixfontein felixfontein deleted the text-conv branch June 27, 2021 07:53
@felixfontein
Copy link
Collaborator Author

@heuels thanks for reviewing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants