Skip to content

Commit

Permalink
Added check for loadbalancer event type
Browse files Browse the repository at this point in the history
Added check for loadbalancer event type
  • Loading branch information
v-mchatla committed Sep 28, 2023
1 parent f3b0db5 commit 2a7096f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def process_events(client: oci.streaming.StreamClient, stream_id, initial_cursor
if "request" in event["data"]:
if event["data"]["request"] is not None and "headers" in event["data"]["request"]:
event["data"]["request"]["headers"] = json.dumps(event["data"]["request"]["headers"])
if event["data"]["request"] is not None and "parameters" in event["data"]["request"]:
if event["data"]["request"] is not None and event["type"] != "com.oraclecloud.loadbalancer.access" and "parameters" in event["data"]["request"]:
event["data"]["request"]["parameters"] = json.dumps(
event["data"]["request"]["parameters"])
if "response" in event["data"]:
Expand Down
Binary file not shown.

0 comments on commit 2a7096f

Please sign in to comment.