Skip to content
Snippets Groups Projects
Commit d319b913 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

service: Change ipalib.errors to module utils ipalib_errors.

Instead o importing ipalib.errors, modules must use
ansible_freeipa_module.ipalib_errors.
parent 2c056b5c
No related branches found
No related tags found
No related merge requests found
...@@ -230,8 +230,7 @@ from ansible.module_utils.basic import AnsibleModule ...@@ -230,8 +230,7 @@ from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.ansible_freeipa_module import temp_kinit, \ from ansible.module_utils.ansible_freeipa_module import temp_kinit, \
temp_kdestroy, valid_creds, api_connect, api_command, compare_args_ipa, \ temp_kdestroy, valid_creds, api_connect, api_command, compare_args_ipa, \
encode_certificate, gen_add_del_lists, module_params_get, to_text, \ encode_certificate, gen_add_del_lists, module_params_get, to_text, \
api_check_param api_check_param, ipalib_errors
import ipalib.errors
def find_service(module, name, netbiosname): def find_service(module, name, netbiosname):
...@@ -251,7 +250,7 @@ def find_service(module, name, netbiosname): ...@@ -251,7 +250,7 @@ def find_service(module, name, netbiosname):
try: try:
_result = api_command(module, "service_show", to_text(name), _args) _result = api_command(module, "service_show", to_text(name), _args)
except ipalib.errors.NotFound: except ipalib_errors.NotFound:
return None return None
if "result" in _result: if "result" in _result:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment