Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
kube-aws: fix template generation error when defining RouteTableId.
Browse files Browse the repository at this point in the history
This fixes the problem i ran into here:
#608 (comment)
  • Loading branch information
pieterlange authored and colhom committed Aug 30, 2016
1 parent 3dff28f commit b1036a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion multi-node/aws/pkg/config/templates/stack-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,8 @@
}
{{end}}
{{end}}
,
{{if not .VPCID}}
,
"{{.VPCLogicalName}}": {
"Properties": {
"CidrBlock": "{{.VPCCIDR}}",
Expand Down Expand Up @@ -888,6 +888,7 @@
{{if .RouteTableID}}
{{range $index, $subnet := .Subnets}}
{{with $subnetLogicalName := printf "Subnet%d" $index}}
,
"{{$subnetLogicalName}}RouteTableAssociation": {
"Properties": {
"RouteTableId": "{{$.RouteTableID}}",
Expand Down

0 comments on commit b1036a7

Please sign in to comment.