Richard W.M. Jones
2014-Jan-28 09:02 UTC
Re: [Libguestfs] Returning list of backends through the API
Pino, you asked on IRC about an API to return a list of backends through the API. If this is for testing, you could add a debug-* API to do it. These are not part of the specified API and so we can change or remove them at any time. A canonical example of this is "debug-drives" which is used in various guestfish tests, eg: https://github.com/libguestfs/libguestfs/blob/master/fish/test-add-domain.sh#L71 I have changed the output of this API several times and we could remove it entirely in future. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
Pino Toscano
2014-Jan-28 14:46 UTC
Re: [Libguestfs] Returning list of backends through the API
On Tuesday 28 January 2014 09:02:19 Richard W.M. Jones wrote:> Pino, you asked on IRC about an API to return a list of backends > through the API.Yes -- basically it came out of my mind when, after the (then reverted) bump of the libvirt requirements, the libvirt backend was not working for me, and I didn't immediately realize my libvirt version was not enough.> If this is for testing, you could add a debug-* API to do it. These > are not part of the specified API and so we can change or remove them > at any time. > > A canonical example of this is "debug-drives" which is used in various > guestfish tests, eg: > > https://github.com/libguestfs/libguestfs/blob/master/fish/test-add-dom > ain.sh#L71 > > I have changed the output of this API several times and we could > remove it entirely in future.It was not a big deal anyway, so I'll avoid adding new API (even if "volatile") for now then. -- Pino Toscano
Maybe Matching Threads
- [PATCH] fish: Set program name correctly for virt-{copy, tar}-{in, out} programs.
- Re: [PATCH] fish: show synopsis if command syntax is wrong
- [PATCH] fish: drop leading '/' in nbd paths (RHBZ#1379585)
- [PATCH] fish: add a small doc note about -- for args (RHBZ#1536603)
- [PATCH] fish: add small documentation bit about format of URIs (RHBZ#1450325)