Skip to content

Commit 867ddc5

Browse files
Merge pull request #69 from TomboScaleComputing/api-put-json3
api module: apply formatting fix
2 parents 343a563 + 275f114 commit 867ddc5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

plugins/modules/api.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,18 +254,18 @@ def delete_record(module, rest_client):
254254

255255
def put_record(module, rest_client):
256256
with open(module.params["source"], "rb") as source_file:
257-
result = rest_client.put_record(
258-
endpoint=module.params["endpoint"],
259-
payload=None,
260-
check_mode=module.check_mode,
261-
query=module.params["data"],
262-
timeout=PUT_TIMEOUT_TIME,
263-
binary_data=source_file,
264-
headers={
265-
"Content-Type": "application/octet-stream",
266-
"Accept": "application/json",
267-
}
268-
)
257+
result = rest_client.put_record(
258+
endpoint=module.params["endpoint"],
259+
payload=None,
260+
check_mode=module.check_mode,
261+
query=module.params["data"],
262+
timeout=PUT_TIMEOUT_TIME,
263+
binary_data=source_file,
264+
headers={
265+
"Content-Type": "application/octet-stream",
266+
"Accept": "application/json",
267+
}
268+
)
269269
return True, result
270270

271271

0 commit comments

Comments
 (0)