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.
1 parent 6760cbe commit f4b7a1bCopy full SHA for f4b7a1b
connect/resources/usage_file_automation.py
@@ -3,6 +3,7 @@
3
# This file is part of the Ingram Micro Cloud Blue Connect SDK.
4
# Copyright (c) 2019 Ingram Micro. All Rights Reserved.
5
6
+import json
7
import logging
8
from abc import ABCMeta
9
@@ -62,9 +63,9 @@ def dispatch(self, request):
62
63
except UsageFileAction as usage:
64
self._api.post(
65
path='{}/{}'.format(request.id, usage.code),
- json=usage.obj.json
66
- if isinstance(usage.obj, BaseModel)
67
- else getattr(usage.obj, '__dict__', str(usage.obj)))
+ data=json.dumps(usage.obj.json
+ if isinstance(usage.obj, BaseModel)
68
+ else usage.obj))
69
processing_result = usage.code
70
71
# Catch skip
0 commit comments