Skip to content

Commit 85a1259

Browse files
committed
push_diff_attach_model: run payload thru json.dumps()
1. plugins/module_utils/vrf/dcnm_vrf_v12.py - push_diff_attach_model Getting a different 500 error with latest changes. Let’s try running the model-generated payload through json.dumps(). The payload looks fine to me, but includes only single backslash escape characters rather than triple-backslash. Maybe json.dumps() will fix this. If so, will look into the model’s field_serializer for a proper solution.
1 parent dac42aa commit 85a1259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/module_utils/vrf/dcnm_vrf_v12.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3629,7 +3629,7 @@ def push_diff_attach_model(self, is_rollback=False) -> None:
36293629
action="attach",
36303630
path=f"{endpoint.path}/attachments",
36313631
verb=endpoint.verb,
3632-
payload=payload,
3632+
payload=json.dumps(payload) if payload else payload,
36333633
log_response=True,
36343634
is_rollback=is_rollback,
36353635
)

0 commit comments

Comments
 (0)