Skip to content

Have Test-AVSProtectedObjectName exit on match#364

Open
gungazoo wants to merge 4 commits intomainfrom
panderson/make-Test-AVSProtectedObjectName-exit-on-protectedname
Open

Have Test-AVSProtectedObjectName exit on match#364
gungazoo wants to merge 4 commits intomainfrom
panderson/make-Test-AVSProtectedObjectName-exit-on-protectedname

Conversation

@gungazoo
Copy link
Contributor

@gungazoo gungazoo commented Feb 3, 2026

This PR closes # Bug 36518718: Run Command can delete a built-in vSAN Storage policy

The changes in this PR are as follows:

  • Removes 'foreach' loop for an 'array contains'
  • Issues a 'throw' if there is a match instead of returning to the calling function (safer than returning)

I have read the contributor guidelines and have completed the following:

  • Formatted the code using VSCode default formatter for PowerShell.
  • Tested the code end-to-end against an SDDC.
  • Documented the functions using standard PowerShell markup and applied AVSAttribute to newly exported functions.

@gungazoo gungazoo requested a review from Zsoldier February 4, 2026 14:59
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.

4 participants