-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
virt.vm_info and other functions in virt module #52561
Closed
+166
−65
Closed
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
838e6e5
rewrote the implementation for get_uuid, get_on_poweroff, get_on_rebo…
waheedi 7ee9297
return text instead of ElementTree.element object for uuid
waheedi c98a655
fixing lints
waheedi c11ce8a
fixing lints
waheedi 053f45b
Merge branch 'virt_info' of github.com:waheedi/salt into virt_info
waheedi 55a2968
readded get_xml function to virt module
waheedi e43fafc
fixed indenetation for get_xml function
waheedi 4007e01
fixed indenetation for get_xml function
waheedi df14742
linting
waheedi a52924d
Merge branch 'develop' into virt_info
waheedi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are all these having to be redefined?
What changed? This has worked in the past. Do you have a reason to not use the get_xml() function that already exists, and looks like it is doing the same thing?
I want to make sure we are not breaking other peoples environments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gtmanfred, I'm pretty sure this will not break other peoples environments, few reasons:
dom
as string a "name" while it should be an actual domain object.ERROR: The VM "<libvirt.virDomain object at 0x7f24e9e73198>" is not present
take a look at this one here for example:
dom
is a domain object and not a domain name string.