Skip to content

Commit

Permalink
Merge pull request #33 from moorepatrick/fix/MAT-1641_Event_Record_Ne…
Browse files Browse the repository at this point in the history
…wline

MAT-1641: Add Newline To put_record Data
  • Loading branch information
patrickherring-TRI authored Apr 20, 2020
2 parents 84df7ec + 830338e commit dbb41e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions beep/utils/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def put_basic_event(self, module_name, record):

if self.mode == 'test':
response = self.kinesis.put_record(StreamName=self.stream,
Data=record,
Data=record + "\n",
PartitionKey=str(hash('test'))
)
elif self.mode == 'events_off':
Expand All @@ -115,7 +115,7 @@ def put_basic_event(self, module_name, record):

else:
response = self.kinesis.put_record(StreamName=self.stream,
Data=record,
Data=record + "\n",
PartitionKey=str(hash(module_name))
)
return response
Expand Down Expand Up @@ -161,7 +161,7 @@ def put_service_event(self, action, status, data):

if self.mode == 'test':
response = self.kinesis.put_record(StreamName=self.stream,
Data=json.dumps(record),
Data=json.dumps(record) + "\n",
PartitionKey=str(hash('test'))
)

Expand All @@ -178,7 +178,7 @@ def put_service_event(self, action, status, data):

else:
response = self.kinesis.put_record(StreamName=self.stream,
Data=json.dumps(record),
Data=json.dumps(record) + "\n",
PartitionKey=str(hash(self.service))
)
return response
Expand Down

0 comments on commit dbb41e1

Please sign in to comment.