Skip to content

NAS-133435 / 25.04 / Standardize vnc fields in virt instance update#15332

Merged
Qubad786 merged 1 commit intomasterfrom
NAS-133435
Jan 14, 2025
Merged

NAS-133435 / 25.04 / Standardize vnc fields in virt instance update#15332
Qubad786 merged 1 commit intomasterfrom
NAS-133435

Conversation

@Qubad786
Copy link
Copy Markdown
Contributor

@Qubad786 Qubad786 commented Jan 8, 2025

Context

UI requested that we standardize virt.instance.update similar to how virt.instance.create works and an explicit enable_vnc field has been added on that end for virt.instance.update to account for this.

@bugclerk bugclerk changed the title Standardize vnc fields in virt instance update NAS-133435 / 25.04 / Standardize vnc fields in virt instance update Jan 8, 2025
@bugclerk
Copy link
Copy Markdown
Contributor

bugclerk commented Jan 8, 2025

@Qubad786 Qubad786 force-pushed the NAS-133435 branch 2 times, most recently from deaeec2 to 7c7b44e Compare January 9, 2025 11:24
@Qubad786 Qubad786 requested a review from a team January 9, 2025 11:24
Comment thread src/middlewared/middlewared/api/v25_04_0/virt_instance.py Outdated
Comment thread src/middlewared/middlewared/api/v25_04_0/virt_instance.py
Copy link
Copy Markdown
Contributor

@yocalebo yocalebo left a comment

Choose a reason for hiding this comment

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

Just making a comment here for posterity sake. If the user explicitly disables the VNC server, then we shouldn't validate the vnc_port attribute. If enable_vnc is False, then disable it and remove vnc_port (or ignore vnc_port).

@Qubad786 Qubad786 force-pushed the NAS-133435 branch 3 times, most recently from 2abb842 to a4f9420 Compare January 10, 2025 08:04
@Qubad786 Qubad786 force-pushed the NAS-133435 branch 2 times, most recently from 39e5d57 to 4e19c6a Compare January 13, 2025 09:23
@Qubad786 Qubad786 requested a review from yocalebo January 13, 2025 10:36
Comment thread src/middlewared/middlewared/plugins/virt/instance.py Outdated
@Qubad786 Qubad786 merged commit 06cd9cc into master Jan 14, 2025
@Qubad786 Qubad786 deleted the NAS-133435 branch January 14, 2025 10:01
@bugclerk
Copy link
Copy Markdown
Contributor

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants