Skip to content

Commit

Permalink
Removing cloud event data json stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
SachinVarghese committed Feb 1, 2022
1 parent 6bf82ab commit 7cbd3f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/alibi-detect-server/adserver/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def post(self):
logging.error("Metrics returned are invalid: " + str(runtime_metrics))

if response.data is not None:
responseStr = json.dumps(response.data)
# responseStr = json.dumps(response.data)

# Create event from response if reply_url is active
if not self.reply_url == "":
Expand All @@ -264,7 +264,7 @@ def post(self):
revent = (
v1.Event()
.SetContentType("application/json")
.SetData(responseStr)
.SetData(response.data)
.SetEventID(resp_event_id)
.SetSource(self.event_source)
.SetEventType(self.event_type)
Expand Down

0 comments on commit 7cbd3f3

Please sign in to comment.