mirror of https://github.com/hashicorp/packer
GetVarsByType is a function that gets a list of Traversals from a hcl Block. This approach works when what we are visiting is indeed one, however when we can get an immediate list of Traversals, but want to filter them based on their roots, we have to reimplement parts of that function. Therefore, we split this function in two, GetVarsByType still keeps its current behaviour, but the filtering step is exposed as another function now: FilterTraversalsByType, so we can reuse it elsewhere.nywilken.document-tmpdir
parent
9d1dc7d41d
commit
5673af108f
Loading…
Reference in new issue