We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 343a563 + 275f114 commit 867ddc5Copy full SHA for 867ddc5
plugins/modules/api.py
@@ -254,18 +254,18 @@ def delete_record(module, rest_client):
254
255
def put_record(module, rest_client):
256
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
- )
+ result = rest_client.put_record(
+ endpoint=module.params["endpoint"],
+ payload=None,
+ check_mode=module.check_mode,
+ query=module.params["data"],
+ timeout=PUT_TIMEOUT_TIME,
+ binary_data=source_file,
+ headers={
+ "Content-Type": "application/octet-stream",
+ "Accept": "application/json",
+ }
+ )
269
return True, result
270
271
0 commit comments