diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-10-05 23:00:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 23:00:41 -0500 |
commit | bd3c84030150ad874cfc1bcdf7b0e6dfd096f7f6 (patch) | |
tree | 6e2d7070f45d6e9d07f87ccc3232877b98a032c5 /nixos/modules/system/boot/systemd-lib.nix | |
parent | 9b968c8305a84ba957d86e61d65737d905f2cee2 (diff) | |
parent | 4392ec653c9e9b87bbd02db9c25c2d8c43742e8d (diff) | |
download | nixlib-bd3c84030150ad874cfc1bcdf7b0e6dfd096f7f6.tar nixlib-bd3c84030150ad874cfc1bcdf7b0e6dfd096f7f6.tar.gz nixlib-bd3c84030150ad874cfc1bcdf7b0e6dfd096f7f6.tar.bz2 nixlib-bd3c84030150ad874cfc1bcdf7b0e6dfd096f7f6.tar.lz nixlib-bd3c84030150ad874cfc1bcdf7b0e6dfd096f7f6.tar.xz nixlib-bd3c84030150ad874cfc1bcdf7b0e6dfd096f7f6.tar.zst nixlib-bd3c84030150ad874cfc1bcdf7b0e6dfd096f7f6.zip |
Merge pull request #46964 from florianjacob/systemd-assert-value-tostring
nixos/systemd-lib: fix assertValueOneOf
Diffstat (limited to 'nixos/modules/system/boot/systemd-lib.nix')
-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})) |