Merge pull request #99471 from Infinisil/fix-enum-bool-description

lib/types: Fix type description of bool enum values
This commit is contained in:
Silvan Mosberger 2020-10-03 17:59:12 +02:00 committed by GitHub
commit 0a366a1550
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -499,6 +499,7 @@ rec {
show = v:
if builtins.isString v then ''"${v}"''
else if builtins.isInt v then builtins.toString v
else if builtins.isBool v then if v then "true" else "false"
else ''<${builtins.typeOf v}>'';
in
mkOptionType rec {