Closed amancevice closed 3 years ago
Add :to_s to extraction of Function ARN in case this value is nil
:to_s
nil
When invoking the function with SAM, context.invoked_function_arn can be nil which causes the existing code to error
context.invoked_function_arn
I tested this by manually creating a mock context object where context.invoked_function_arn == "" and saw that it worked
context.invoked_function_arn == ""
Thanks for the contribution @amancevice! It seems like the integration tests are failing for a reason unrelated to the PR, so once we get them to pass I'll merge this for you.
What does this PR do?
Add
:to_s
to extraction of Function ARN in case this value isnil
Motivation
When invoking the function with SAM,
context.invoked_function_arn
can benil
which causes the existing code to errorTesting Guidelines
I tested this by manually creating a mock context object where
context.invoked_function_arn == ""
and saw that it workedAdditional Notes
Types of changes
Check all that apply