terraform: fix zero/one boundary for resource counts

This commit is contained in:
Mitchell Hashimoto 2016-11-07 10:37:30 -08:00
parent bd8802e08d
commit 97b7915b8f
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ func (n *NodePlannableResource) EvalTree() EvalNode {
// With the interpolated count, we can then DynamicExpand
// into the proper number of instances.
&EvalInterpolate{Config: n.Config.RawCount},
&EvalCountFixZeroOneBoundary{Resource: n.Config},
},
}
}