From b064c022a099ce0ad447a095ecc25b5f458d4fb1 Mon Sep 17 00:00:00 2001 From: ieisystem <148536634+ieisystem@users.noreply.github.com> Date: Thu, 7 Dec 2023 11:10:25 +0800 Subject: [PATCH] Modify the inmanage error referenced in modules utils (#2) --- changelogs/fragments/2-edit_module_utils.yaml | 2 ++ plugins/module_utils/ksmanage.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/2-edit_module_utils.yaml diff --git a/changelogs/fragments/2-edit_module_utils.yaml b/changelogs/fragments/2-edit_module_utils.yaml new file mode 100644 index 0000000..2a8e078 --- /dev/null +++ b/changelogs/fragments/2-edit_module_utils.yaml @@ -0,0 +1,2 @@ +bugfixes: + - Modify the inmanage error referenced in modules utils. \ No newline at end of file diff --git a/plugins/module_utils/ksmanage.py b/plugins/module_utils/ksmanage.py index a0043ee..705946b 100644 --- a/plugins/module_utils/ksmanage.py +++ b/plugins/module_utils/ksmanage.py @@ -6,7 +6,7 @@ __metaclass__ = type try: - import ksmanage + import inmanage ksmanage_temp = True except ImportError: ksmanage_temp = False @@ -50,5 +50,5 @@ def get_connection(module): dict_param = module.params if not ksmanage_temp: module.fail_json(msg='ksmanage_sdk must be installed to use this module') - result = ksmanage.main(dict_param) + result = inmanage.main(dict_param) return result