From ba4664d9a7aefb34931e158e81f9902bbe45a9ad Mon Sep 17 00:00:00 2001 From: Dominic Gunn Date: Fri, 29 May 2020 10:24:29 +0100 Subject: [PATCH] Fix rendering for openICMP --- builtin/files/stack-templates/control-plane.json.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/files/stack-templates/control-plane.json.tmpl b/builtin/files/stack-templates/control-plane.json.tmpl index a48513a1f..fa988697d 100644 --- a/builtin/files/stack-templates/control-plane.json.tmpl +++ b/builtin/files/stack-templates/control-plane.json.tmpl @@ -219,7 +219,8 @@ "ToPort": -1 }, {{end -}} - {{ range $_, $r := $.SSHAccessAllowedSourceCIDRs -}} + {{ range $i, $r := $.SSHAccessAllowedSourceCIDRs -}} + {{if gt $i 0}},{{end}} { "CidrIp": "{{$r}}", "FromPort": 22,