Skip to content

Fix registry resource to handle deleting non-existing reg value/key#847

Merged
SteveL-MSFT merged 3 commits intoPowerShell:mainfrom
SteveL-MSFT:reg-delete-nonexist
May 29, 2025
Merged

Fix registry resource to handle deleting non-existing reg value/key#847
SteveL-MSFT merged 3 commits intoPowerShell:mainfrom
SteveL-MSFT:reg-delete-nonexist

Conversation

@SteveL-MSFT
Copy link
Member

PR Summary

registry resource was not handling NotFound error when attempting to delete a reg value or key. Fix is to treat that as success trying to delete something that doesn't exist.

PR Context

Fix #843

@SteveL-MSFT SteveL-MSFT requested a review from tgauth May 29, 2025 03:43
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue May 29, 2025
Merged via the queue into PowerShell:main with commit 7ed105e May 29, 2025
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the reg-delete-nonexist branch May 29, 2025 17:02
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.

config set throws errors for resources with "_exist: false" if they don't exist

2 participants