Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Optional Protection setting #320

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

xserrat
Copy link
Contributor

@xserrat xserrat commented Mar 10, 2024

Expose optional protection setting to prevent VMs from being removed.

It closes #319

"iso": {
"storage": "local",
"file": "ubuntu-14.04.5-server-amd64.iso"
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've update this JSON sample because with the previous structure I've got an error during the Unmarshal:

./proxmox-api-go installQemu proxmox-node-name < qemu1.json
2024/03/10 11:41:02 json: cannot unmarshal string into Go struct field ConfigQemu.iso of type proxmox.IsoFile

@mleone87 mleone87 requested a review from Tinyblargon March 13, 2024 20:58
Copy link
Collaborator

@Tinyblargon Tinyblargon left a comment

Choose a reason for hiding this comment

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

Could you add the protection setting to ConfigQemu.mapToApiValues() as well?
Everything else looks good.

@Tinyblargon Tinyblargon added the type/enhancement An improvement of existing functionality label Mar 13, 2024
@xserrat
Copy link
Contributor Author

xserrat commented Mar 16, 2024

Could you add the protection setting to ConfigQemu.mapToApiValues() as well? Everything else looks good.

Sure! thanks for the review!

@xserrat xserrat requested a review from Tinyblargon March 16, 2024 10:46
@Tinyblargon Tinyblargon merged commit a76eb23 into Telmate:master Mar 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Optional Protection property for Qemu VMs
2 participants