Skip to content

Commit

Permalink
docs: clarify and Fix Log Messages in Lambda Function Waiting Process
Browse files Browse the repository at this point in the history
- Change log message to clarify waiting for Lambda function status
- Fix a typo in the log message

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Apr 20, 2023
1 parent 558b7d0 commit 5ea059a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func (p *Plugin) checkStatus(svc *lambda.Lambda) error {
if aws.StringValue(lambdaConfig.State) != lambda.StateActive {
log.Println("Current State Reason:", aws.StringValue(lambdaConfig.StateReason))
log.Println("Current State Reason Code:", aws.StringValue(lambdaConfig.StateReasonCode))
log.Println("Waiting Lambda function states to be active...")
log.Println("Waiting for Lambda function states to be active...")
if err := svc.WaitUntilFunctionActiveV2WithContext(
aws.BackgroundContext(),
&lambda.GetFunctionInput{
Expand All @@ -330,7 +330,7 @@ func (p *Plugin) checkStatus(svc *lambda.Lambda) error {
if aws.StringValue(lambdaConfig.LastUpdateStatus) != lambda.LastUpdateStatusSuccessful {
log.Println("Last Update Status Reason:", aws.StringValue(lambdaConfig.LastUpdateStatusReason))
log.Println("Last Update Status ReasonCode:", aws.StringValue(lambdaConfig.LastUpdateStatusReasonCode))
log.Println("Waiting Last Update Status to be successful ...")
log.Println("Waiting for Last Update Status to be successful ...")
if err := svc.WaitUntilFunctionUpdatedV2WithContext(
aws.BackgroundContext(),
&lambda.GetFunctionInput{
Expand Down

0 comments on commit 5ea059a

Please sign in to comment.