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

Enhancement: Add domain title property #1126

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

NamelessOne91
Copy link

@NamelessOne91 NamelessOne91 commented Oct 30, 2024

Related to #1041

Adds basic support for managing a libvirt domain title property.

Possible further improvements:

  • have a CustomDiff function that checks if a new title is valid (read: contains no newline characters) BEFORE attempting to replace a domain. Right now when the new title contains newlines the user can still attempt a replacement, the previous domain is destroyed and the new one fails to be created because the title is invalid.
    No bueno.

  • do not force a replacement when the title changes and correctly update it in place. I think libvirt API has no function to update only the title property, so this may require directly updating the domain XML configuration and redefining the domain.

@NamelessOne91 NamelessOne91 marked this pull request as ready for review November 25, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant