You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this repo is old, I'm really hoping someone is watching this, so here goes.
I'm using eps to create tf files that are passed to modules. For one resource there are a list of nested resources, so this script calls two templates, one to create the main tf and one to create the vars.tf that is passed in. When I run the vars eps template with a group of objects, it returns as expected.
When i run in the context of the script, the eps doesn't iterate over the objects passed in. I'm curious if that's because I'm calling invoke from inside a for loop and that's somehow messing things up?
Here's some stripped down samples, cant' really share everything sorry:
I'm currently unable to repro this after closing out of all the powershells i had open. I'm not sure if there was something in the shell i was testing in that had some weirdness or what I'm going to keep hitting this, but thus far seems to work as expected in posh7 and og posh.
hey @straightdave I'm not entirely sure what the deal was, but after several more hours hammering away I'm going to have to say this must have been do to something weird inside that powershell session. I've tried straight core, straight powershell, then in the windows terminal for core and powershell and it worked as expected. Sorry for the unnecessary issue.
I know this repo is old, I'm really hoping someone is watching this, so here goes.
I'm using eps to create tf files that are passed to modules. For one resource there are a list of nested resources, so this script calls two templates, one to create the main tf and one to create the vars.tf that is passed in. When I run the vars eps template with a group of objects, it returns as expected.
When i run in the context of the script, the eps doesn't iterate over the objects passed in. I'm curious if that's because I'm calling invoke from inside a for loop and that's somehow messing things up?
Here's some stripped down samples, cant' really share everything sorry:
Calling script
Initial eps
looped eps
The resulting output when run through the script is below
The resource that is passed in is an array of psobjects that have n+1 unique ServerNames.
The text was updated successfully, but these errors were encountered: