We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rocks report host vm config returns a very ugly xml. Verify if you can prettify it with the following code before print it out:
import xml.dom.minidom
The text was updated successfully, but these errors were encountered:
I tried that... whitespace hell as described in [1]. Solution is not as good as..
# rocks report host vm config compute-0-0-0 | xmllint --format - <?xml version="1.0"?> <domain type="kvm"> <name>compute-0-0-0</name> <os> <type>hvm</type> <boot dev="network"/> <boot dev="hd"/> <bootmenu enable="yes"/> </os> <memory>16777216</memory> <vcpu>16</vcpu> <cpu mode="host-passthrough"/> ...
I'll try to come up with something better.
[1] - http://stackoverflow.com/a/14493981
Sorry, something went wrong.
lclementi
No branches or pull requests
Rocks report host vm config returns a very ugly xml.
Verify if you can prettify it with the following code before print it out:
import xml.dom.minidom
print xml.dom.minidom.parseString("zzz").toprettyxml()
The text was updated successfully, but these errors were encountered: