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

Fix bug in Safe-Management.ps1 -> Get-Safe #415

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

cg6
Copy link

@cg6 cg6 commented Dec 19, 2024

Script failed due to two issues introduced in the latest merge:

1: Duplicate line #643 $_safe += $(Invoke-Rest -Uri $accSafeURL -Command 'Get' -Header $g_LogonHeader -ErrAction 'SilentlyContinue').
This caused the code a few lines down to find two .nextlink values and build an incorrect $_safeNext.
2: Line # 648 was missing the space in Invoke-Rest -Uri

Testing

Safe-Management -List has been run with -Verbose and confirmed all requests and output are as expected.

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.

1 participant