diff options
author | Florian Jacob <projects+git@florianjacob.de> | 2018-09-20 13:40:50 +0200 |
---|---|---|
committer | Florian Jacob <projects+git@florianjacob.de> | 2018-09-20 13:40:50 +0200 |
commit | 4392ec653c9e9b87bbd02db9c25c2d8c43742e8d (patch) | |
tree | 6aff6259791785a3adc34a8f1c135e9c4af768cd /nixos/modules | |
parent | 05659962cd8c04a9e8bf05b298b735f5747bf12c (diff) | |
download | nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.gz nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.bz2 nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.lz nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.xz nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.tar.zst nixlib-4392ec653c9e9b87bbd02db9c25c2d8c43742e8d.zip |
nixos/systemd-lib: fix assertValueOneOf
when value is not a string
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/system/boot/systemd-lib.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd-lib.nix b/nixos/modules/system/boot/systemd-lib.nix index 9c8d4a026b4a..68a40377ee13 100644 --- a/nixos/modules/system/boot/systemd-lib.nix +++ b/nixos/modules/system/boot/systemd-lib.nix @@ -63,7 +63,7 @@ in rec { assertValueOneOf = name: values: group: attr: optional (attr ? ${name} && !elem attr.${name} values) - "Systemd ${group} field `${name}' cannot have value `${attr.${name}}'."; + "Systemd ${group} field `${name}' cannot have value `${toString attr.${name}}'."; assertHasField = name: group: attr: optional (!(attr ? ${name})) |