Skip to content

Conversation

@Tinyblargon
Copy link
Collaborator

Revert optimization as it causes issues due to inconsistent error parsing.

Related to Telmate/terraform-provider-proxmox#1469

@Tinyblargon Tinyblargon requested a review from Copilot December 16, 2025 21:59
@Tinyblargon Tinyblargon self-assigned this Dec 16, 2025
@Tinyblargon Tinyblargon added type/bug modifies/go Pull requests that update Go code size/S Denotes a PR that changes 10-29 lines, ignoring generated files test/done This PR has been tested and the result was succesfull labels Dec 16, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts optimization #452 due to issues with inconsistent error parsing between the error body and error header in the Proxmox API, as referenced in issue #1469.

Key Changes:

  • Reverts the exists_Unsafe method to use GetResourceList to check if a guest ID exists
  • Preserves the optimized implementation as a commented-out FIXME block for future reference once error parsing inconsistencies are resolved

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Tinyblargon Tinyblargon merged commit a01d280 into Telmate:master Dec 16, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifies/go Pull requests that update Go code size/S Denotes a PR that changes 10-29 lines, ignoring generated files test/done This PR has been tested and the result was succesfull type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant