[Pkg-libvirt-commits] [libguestfs] 40/87: launch: Allow backend = "appliance" for backwards compatibility (RHBZ#1055452).
Hilko Bengen
bengen at moszumanska.debian.org
Wed Feb 19 21:10:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch debian
in repository libguestfs.
commit aecb27729aa35a6464d4db3b514274ebecf03ca9
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Mon Jan 20 10:21:26 2014 +0000
launch: Allow backend = "appliance" for backwards compatibility (RHBZ#1055452).
This fixes a regression which was introduced in
commit 0f26218905816ca86b6ec57070eed802515f4853.
(cherry picked from commit 69267d8762b586deab6b930131e1d677ba85df8d)
---
src/launch.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/launch.c b/src/launch.c
index 2dd2d0e..28e80c5 100644
--- a/src/launch.c
+++ b/src/launch.c
@@ -449,6 +449,10 @@ guestfs___set_backend (guestfs_h *g, const char *method)
assert (g->state == CONFIG);
+ /* For backwards compatibility with old code (RHBZ#1055452). */
+ if (STREQ (method, "appliance"))
+ method = "direct";
+
for (b = backends; b != NULL; b = b->next) {
if (STREQ (method, b->name))
break;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list