[et-mgmt-tools] [PATCH 2/6] Add a few helper util functions
Cole Robinson
crobinso at redhat.com
Wed Aug 6 16:21:46 UTC 2008
This patch adds a few functions to virtinst.util:
1. is_storage_capable: receives an active connection
and attempts to determine if it supports storage
management. This is used in a few places to maintain
existing behavior and error paths for connections
to older libvirt versions.
2. is_remote: receives a uri and determines if it
specifies a remote connection. Used for various
validation checks.
3. get_xml_path: Receives an xml blob and an
xPath, and returns that path from the xml. This
is largely a convenience function since we have
this code duplicated in about 10 places throughout
virtinst and virt-manager.
Thanks,
Cole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virtinst-remote-02-util-helpers.patch
Type: text/x-patch
Size: 3031 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20080806/768bf796/attachment.bin>
More information about the et-mgmt-tools
mailing list