Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.

Commit 3c64cff

Browse files
Fixing issue with updating work order receipt
- Pushing the fix for the issue #693 . - In the file work_order_receipt.py, in line 163, while creating the update receipt - we concatenate the update data to the work order receipt string. The issue is that if the receipt create status has the value FAILED, the update data will be a dictionary, and hence, concatenating it to the string will cause the enclave manager to crash. - Have pushed code to convert this update data into a string so that it can be concatenated. Signed-off-by: snatesh <[email protected]>
1 parent 000af2f commit 3c64cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/avalon_sdk/work_order_receipt/work_order_receipt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def update_receipt(self, work_order_id, update_type,
135135
Returns:
136136
JSON RPC work order update receipt request of type dictionary
137137
"""
138-
data = update_data
138+
data = json.dumps(update_data)
139139
if update_type in [ReceiptCreateStatus.PROCESSED.value,
140140
ReceiptCreateStatus.COMPLETED.value]:
141141
# Work Order Receipt status is set to be completed or processed,

0 commit comments

Comments
 (0)