Skip to content

Commit fd836ec

Browse files
authored
Fix Update Function Configuration not working if using Image Lambda (#2720)
1 parent 183fded commit fd836ec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix being unable to update Lambda configuration if the Image packaging type"
4+
}

jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/upload/UpdateFunctionConfigDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class UpdateFunctionConfigDialog(private val project: Project, private val initi
114114
name = initialSettings.name,
115115
description = view.description.text,
116116
packageType = view.configSettings.packageType(),
117-
runtime = view.configSettings.runtime.selectedItem as Runtime,
117+
runtime = if (view.configSettings.packageType() == PackageType.ZIP) view.configSettings.runtime.selectedItem as Runtime else null,
118118
handler = view.configSettings.handlerPanel.handler.text,
119119
iamRole = view.configSettings.iamRole.selected()!!,
120120
envVars = view.configSettings.envVars.envVars,

0 commit comments

Comments
 (0)