Skip to content

Commit dca8512

Browse files
committed
chore: debug
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
1 parent 91ddc59 commit dca8512

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎plugin.go‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"errors"
5+
"fmt"
56
"log"
67
"os"
78
"path/filepath"
@@ -121,6 +122,8 @@ func (p Plugin) Exec() error {
121122
p.Config.Publish = true
122123
}
123124

125+
fmt.Printf("%#v\n", p.Config)
126+
124127
input := &lambda.UpdateFunctionCodeInput{}
125128
input.SetDryRun(p.Config.DryRun)
126129
input.SetFunctionName(p.Config.FunctionName)
@@ -225,6 +228,14 @@ func (p Plugin) Exec() error {
225228
svc := lambda.New(sess, config)
226229

227230
if isUpdateConfig {
231+
232+
// if err := svc.WaitUntilFunctionActive(&lambda.GetFunctionConfigurationInput{
233+
// FunctionName: aws.String(p.Config.FunctionName),
234+
// }); err != nil {
235+
// log.Println(err.Error())
236+
// return err
237+
// }
238+
228239
// UpdateFunctionConfiguration API operation for AWS Lambda.
229240
result, err := svc.UpdateFunctionConfiguration(cfg)
230241
if err != nil {

0 commit comments

Comments
 (0)
⌂ 换网址