Integers must be converted to strings, of course

svn path=/nixos/trunk/; revision=25274
This commit is contained in:
Sander van der Burg 2010-12-24 16:34:18 +00:00
parent c65c03099f
commit 6ba45109a1

View File

@ -132,7 +132,7 @@ in
let infrastructureAttrValue = getAttr infrastructureAttrName (cfg.infrastructure); let infrastructureAttrValue = getAttr infrastructureAttrName (cfg.infrastructure);
in in
if builtins.isInt infrastructureAttrValue then if builtins.isInt infrastructureAttrValue then
''${infrastructureAttrName}=${infrastructureAttrValue} \ ''${infrastructureAttrName}=${toString infrastructureAttrValue} \
'' ''
else else
''${infrastructureAttrName}=\"${infrastructureAttrValue}\" \ ''${infrastructureAttrName}=\"${infrastructureAttrValue}\" \