Skip to content

fix: fix deprecation warnings due to imports - #338

Open
ryanb74 wants to merge 2 commits into
ansible-collections:mainfrom
ryanb74:main
Open

fix: fix deprecation warnings due to imports#338
ryanb74 wants to merge 2 commits into
ansible-collections:mainfrom
ryanb74:main

Conversation

@ryanb74

@ryanb74 ryanb74 commented May 20, 2026

Copy link
Copy Markdown

fixes deprecation warnings when importing to_text, to_native and to_bytes functions in the various modules

SUMMARY

This fixes the following deprecation warning when running netapp modules :

[DEPRECATION WARNING]: Importing 'to_text' from 'ansible.module_utils._text' is deprecated. This feature will be removed from ansible-core version 2.24. Use ansible.module_utils.common.text.converters instead.

[DEPRECATION WARNING]: Importing 'to_bytes' from 'ansible.module_utils._text' is deprecated. This feature will be removed from ansible-core version 2.24. Use ansible.module_utils.common.text.converters instead.

[DEPRECATION WARNING]: Importing 'to_native' from 'ansible.module_utils._text' is deprecated. This feature will be removed from ansible-core version 2.24. Use ansible.module_utils.common.text.converters instead.
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

all modules using the given import statements as well as the module_utils they need

ryanb74 added 2 commits May 20, 2026 13:25
fixes deprecation warnings when importing `to_text`, `to_native` and `to_bytes` functions in the various modules
@ryanb74

ryanb74 commented Jun 3, 2026

Copy link
Copy Markdown
Author

@carchi8py Hi Chris, could you please take a look at this PR ?

thanks

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.

1 participant