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

Updated imports ansible.module_utils._text to ansible.module_utils.common.text.converters #602

Merged
merged 9 commits into from
Feb 3, 2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- Updated the text converter import from "from ansible.module_utils._text" to "from ansible.module_utils.common.text.converters" to remove warning ".. warn:: Use ansible.module_utils.common.text.converters instead.".

3 changes: 2 additions & 1 deletion plugins/action/zos_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
import re

from hashlib import sha256
from ansible.module_utils._text import to_bytes, to_text
# from ansible.module_utils._text import to_bytes, to_text
from ansible.module_utils.common.text.converters import to_bytes, to_text
from ansible.module_utils.six import string_types
from ansible.module_utils.parsing.convert_bool import boolean
from ansible.plugins.action import ActionBase
Expand Down
3 changes: 2 additions & 1 deletion plugins/action/zos_job_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

from ansible.plugins.action import ActionBase
from ansible.errors import AnsibleError, AnsibleFileNotFound
from ansible.module_utils._text import to_bytes, to_text
# from ansible.module_utils._text import to_bytes, to_text
from ansible.module_utils.common.text.converters import to_bytes, to_text
import os


Expand Down
3 changes: 2 additions & 1 deletion plugins/module_utils/data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
from os import path, walk
from string import ascii_uppercase, digits
from random import randint
from ansible.module_utils._text import to_bytes
# from ansible.module_utils._text import to_bytes
from ansible.module_utils.common.text.converters import to_bytes
from ansible_collections.ibm.ibm_zos_core.plugins.module_utils.ansible_module import (
AnsibleModuleHelper,
)
Expand Down
3 changes: 2 additions & 1 deletion plugins/module_utils/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
from sys import platform as SYS_PLATFORM
from subprocess import Popen, PIPE
from ansible.module_utils.six import binary_type, text_type, PY2, PY3
from ansible.module_utils._text import to_text, to_bytes
# from ansible.module_utils._text import to_text, to_bytes
from ansible.module_utils.common.text.converters import to_bytes, to_text
from shlex import split


Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/zos_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@
from ansible_collections.ibm.ibm_zos_core.plugins.module_utils.ansible_module import (
AnsibleModuleHelper,
)
from ansible.module_utils._text import to_bytes
# from ansible.module_utils._text import to_bytes
from ansible.module_utils.common.text.converters import to_bytes
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.six import PY3
from re import IGNORECASE
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/zos_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@
from math import ceil
from shutil import rmtree
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils._text import to_bytes
# from ansible.module_utils._text import to_bytes
from ansible.module_utils.common.text.converters import to_bytes
from ansible.module_utils.parsing.convert_bool import boolean
from ansible_collections.ibm.ibm_zos_core.plugins.module_utils import (
better_arg_parser,
Expand Down