Skip to content

Commit

Permalink
Merge pull request #329 from ponkio-o/patch-1
Browse files Browse the repository at this point in the history
fix: added zero value check for ImageConfigRespose
  • Loading branch information
fujiwara authored Oct 19, 2023
2 parents 0a13392 + 7b9080b commit cc9d28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func newFunctionFrom(c *lambda.FunctionConfiguration, code *lambda.FunctionCodeL
Variables: e.Variables,
}
}
if i := c.ImageConfigResponse; i != nil {
if i := c.ImageConfigResponse; i != nil && i.ImageConfig != nil {
fn.ImageConfig = &lambda.ImageConfig{
Command: i.ImageConfig.Command,
EntryPoint: i.ImageConfig.EntryPoint,
Expand Down

0 comments on commit cc9d28f

Please sign in to comment.