Skip to content

Commit

Permalink
Fix failing CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
DJ Spatoulas committed Jan 12, 2021
1 parent ed00118 commit 03bfc2c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions aws/resource_aws_lambda_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -1302,15 +1302,13 @@ func expandLambdaFileSystemConfigs(fscMaps []interface{}) []*lambda.FileSystemCo
func flattenLambdaImageConfig(response *lambda.ImageConfigResponse) []map[string]interface{} {
settings := make(map[string]interface{})

imageConfig := response.ImageConfig

if response == nil || response.Error != nil || imageConfig == nil {
if response == nil || response.Error != nil || response.ImageConfig == nil {
return nil
}

settings["command"] = imageConfig.Command
settings["entry_point"] = imageConfig.EntryPoint
settings["working_directory"] = imageConfig.WorkingDirectory
settings["command"] = response.ImageConfig.Command
settings["entry_point"] = response.ImageConfig.EntryPoint
settings["working_directory"] = response.ImageConfig.WorkingDirectory

return []map[string]interface{}{settings}
}
Expand Down

0 comments on commit 03bfc2c

Please sign in to comment.