k8s: convert int to string to avoid interpolation error

This commit is contained in:
Peter Hoeg 2017-04-13 19:31:43 +08:00
parent 048114eb4f
commit bf4be8f1dd

View File

@ -45,7 +45,7 @@ let
cniConfig = pkgs.buildEnv {
name = "kubernetes-cni-config";
paths = imap (i: entry:
pkgs.writeTextDir "${10+i}-${entry.type}.conf" (builtins.toJSON entry)
pkgs.writeTextDir "${toString (10+i)}-${entry.type}.conf" (builtins.toJSON entry)
) cfg.kubelet.cni.config;
};