Skip to content

Commit 91d190e

Browse files
authored
Merge pull request #2973 from lizardruss/2971
fix: prevent using "<nil>" as default value
2 parents 94dadc3 + 2ce1d20 commit 91d190e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/devspace/config/loader/variable/undefined_variable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func getParams(variable *latest.Variable) *survey.QuestionOptions {
9999
params.IsPassword = true
100100
}
101101

102-
if variable.Default != "" {
102+
if variable.Default != nil && variable.Default != "" {
103103
params.DefaultValue = fmt.Sprintf("%v", variable.Default)
104104
}
105105
if variable.Default != nil {

0 commit comments

Comments
 (0)