Skip to content

Commit

Permalink
Fix validation error for string flag in shell command, fixes #2631 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertsoft committed Nov 20, 2020
1 parent fa3c2cd commit e039fe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ddev/cmd/flags.go
Expand Up @@ -223,6 +223,8 @@ func (v *defValueValue) validate(aType typeValue) error {
*v = defValueValue(strconv.FormatBool(false))
case FtCount, FtDuration, FtFloat32, FtFloat64, FtInt, FtInt8, FtInt16, FtInt32, FtUint, FtUint8, FtUint16, FtUint32:
*v = defValueValue(strconv.FormatInt(0, 10))
case FtString:
*v = ""
case ftTest3: // used for testing only
*v = ""
default:
Expand Down

0 comments on commit e039fe4

Please sign in to comment.