Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Get-IniContent.ps1 #73

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Conversation

tcartwright
Copy link
Contributor

@tcartwright tcartwright commented Oct 14, 2022

Original code was creating a nested arraylist on the first item when keynames are the same. Which caused the first items to be doubled up into two lists.

Example:
Routes=8675309
Routes=1234567
Routes=2345678
Routes=3456789

Was read in, but then would output like below when Out-IniFile was called. The desired output would be to match the existing format. What's worse is that the first value in the list is lost. The line Routes=8675309 disappears when writing the file back out.

Routes= System.Collections.ArrayList 1234567 2345678 3456789
Routes=1234567
Routes=2345678
Routes=3456789

Original code was creating a nested arraylist on the first item when keynames matched. Which caused the first items to be doubled up into two lists.
@tcartwright
Copy link
Contributor Author

Appears the checks are not working properly? Please don't dismiss my PR because of them.

@tcartwright
Copy link
Contributor Author

Is the repo owner not maintaining this repo any more? I just checked and there are 5 or more (including mine) pull requests for this very same bug. All of which have been ignored. @lipkau can you please pull in one of the PRs? and publish a new module?

@lipkau
Copy link
Owner

lipkau commented Oct 18, 2022

the CI/CD pipeline has been broken for a while.
I started migrating it to github actions, but didn't have the time to finish it yet.

I can push the changes manually, but I first I am interested in what versions of powershell are affected by this.

Answer:
bug is reproducible on v5.1.22000 and v7.2.6

@lipkau lipkau merged commit 81f0f1c into lipkau:master Oct 18, 2022
@lipkau
Copy link
Owner

lipkau commented Oct 18, 2022

version 3.1.3 is released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants