mirror of
https://github.com/Corsinvest/cv4pve-autosnap.git
synced 2026-04-25 08:55:49 +03:00
[PR #115] [MERGED] Fix snap --dry-run non-zero exit code (v1.21.0) #114
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-autosnap#114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Corsinvest/cv4pve-autosnap/pull/115
Author: @franklupo
Created: 2/20/2026
Status: ✅ Merged
Merged: 2/20/2026
Merged by: @franklupo
Base:
master← Head:fix/dry-run-non-zero-exit-code📝 Commits (1)
d084eecFix snap --dry-run non-zero exit code and update packages to 9.1.4 (#114)📊 Changes
3 files changed (+5 additions, -4 deletions)
View changed files
📝
Directory.Build.props(+1 -1)📝
Directory.Packages.props(+2 -2)📝
src/Corsinvest.ProxmoxVE.AutoSnap.Api/Application.cs(+2 -1)📄 Description
Closes #114
Summary
inErrorwas initialized totrueand never reset when_dryRunskipped the snapshot creation block, causingsnap --dry-runto always report failurefalse(consistent withSnapshotsRemoveAsync) and added explicitinError = truein thecatchblockCorsinvest.ProxmoxVE.Api.ExtensionandCorsinvest.ProxmoxVE.Api.Consolefrom9.1.0→9.1.41.20.0→1.21.0Test plan
snap --dry-runand verify exit code is 0snap(no dry-run) with a real error and verify exit code is non-zeroclean --dry-runand verify it still works correctly🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.