mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #247] [MERGED] Fix GetTaskExitStatus success criteria #337
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#337
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/Telmate/proxmox-api-go/pull/247
Author: @jonglezb
Created: 3/21/2023
Status: ✅ Merged
Merged: 3/28/2023
Merged by: @mleone87
Base:
master← Head:fix_success_warning📝 Commits (1)
e79247dFix GetTaskExitStatus success criteria📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
proxmox/client.go(+2 -1)📄 Description
GetTaskExitStatus considers any exitstatus other than "OK" as an error. But the Proxmox API can return "WARNINGS: XXX" in the some cases. This should be considered a success as well.
This bug causes the Terraform provider to try to start the VM three times, and then to return an error because all attempts apparently "fail" (but the VM is actually correctly started).
Example output when starting a VM:
The exit status is "WARNINGS: 1", not "OK", but the operation still worked.
The corresponding warning in the web interface is:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.