Skip to content

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