mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
service: Change ipalib.errors to module utils ipalib_errors.
Instead o importing ipalib.errors, modules must use ansible_freeipa_module.ipalib_errors.
This commit is contained in:
@@ -230,8 +230,7 @@ from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.ansible_freeipa_module import temp_kinit, \
|
||||
temp_kdestroy, valid_creds, api_connect, api_command, compare_args_ipa, \
|
||||
encode_certificate, gen_add_del_lists, module_params_get, to_text, \
|
||||
api_check_param
|
||||
import ipalib.errors
|
||||
api_check_param, ipalib_errors
|
||||
|
||||
|
||||
def find_service(module, name, netbiosname):
|
||||
@@ -251,7 +250,7 @@ def find_service(module, name, netbiosname):
|
||||
|
||||
try:
|
||||
_result = api_command(module, "service_show", to_text(name), _args)
|
||||
except ipalib.errors.NotFound:
|
||||
except ipalib_errors.NotFound:
|
||||
return None
|
||||
|
||||
if "result" in _result:
|
||||
|
||||
Reference in New Issue
Block a user