From 16b70ca57653e98fbe111083fbe09b70d243e1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Mu=C3=B1oz?= Date: Tue, 30 Jan 2024 12:54:25 -0600 Subject: [PATCH] fixing sanity problems --- plugins/action/swim_import_local.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/action/swim_import_local.py b/plugins/action/swim_import_local.py index bc37213c82..b5e3b8a6c9 100644 --- a/plugins/action/swim_import_local.py +++ b/plugins/action/swim_import_local.py @@ -42,7 +42,8 @@ class ActionModule(ActionBase): def __init__(self, *args, **kwargs): if not ANSIBLE_UTILS_IS_INSTALLED: - raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'") + raise AnsibleActionFail( + "ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'") super(ActionModule, self).__init__(*args, **kwargs) self._supports_async = False self._supports_check_mode = False @@ -71,10 +72,12 @@ def get_object(self, params): is_third_party=params.get("isThirdParty"), third_party_vendor=params.get("thirdPartyVendor"), third_party_image_family=params.get("thirdPartyImageFamily"), - third_party_application_type=params.get("thirdPartyApplicationType"), + third_party_application_type=params.get( + "thirdPartyApplicationType"), file_path=params.get("filePath"), - multipart_fields = {'file': (os.path.basename(params.get("filePath")), open(params.get("filePath"), 'rb'))}, - multipart_monitor_callback = None + multipart_fields={'file': (os.path.basename(params.get( + "filePath")), open(params.get("filePath"), 'rb'))}, + multipart_monitor_callback=None ) return new_object