Skip to content

Commit

Permalink
fixing sanity problems
Browse files Browse the repository at this point in the history
  • Loading branch information
fmunozmiranda committed Jan 30, 2024
1 parent 9c16109 commit 16b70ca
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions plugins/action/swim_import_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 16b70ca

Please sign in to comment.