Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit d2264b0

Browse files
authored
hotfix(botocore): handling with missing name on step function execution (#9)
1 parent fdd0b2e commit d2264b0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

epsagon/events/botocore.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ class BotocoreStepFunctionEvent(BotocoreEvent):
695695
RESOURCE_TYPE = 'sfn'
696696
REAL_RESOURCE_TYPE = 'stepfunctions'
697697

698+
DEFAULT_EXECTUTION_NAME = 'Unnamed Execution'
699+
698700
def __init__(self, wrapped, instance, args, kwargs, start_time, response,
699701
exception):
700702
self.RESPONSE_TO_FUNC.update({
@@ -748,7 +750,7 @@ def process_start_exec_operation(self, args, _):
748750
request_args['stateMachineArn']
749751
)
750752
self.resource['metadata']['Execution Name'] = (
751-
request_args['name']
753+
request_args.get('name', self.DEFAULT_EXECTUTION_NAME)
752754
)
753755

754756
add_data_if_needed(

0 commit comments

Comments
 (0)