From 8869adf1e811d894088dbb0f371edc23299005c8 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 21 Sep 2009 11:52:53 +0100 Subject: Remove guestfs_wait_ready (turn it into a no-op). This commit changes guestfs_launch so that it both launches the appliance and waits until it is ready (ie. the daemon communicates back to us). Since we removed the pretence that we could implement a low-level asynchronous API, the need to call launch() followed by wait_ready() has looked a bit silly. Now guestfs_wait_ready() is basically a no-op. It is left in the API for backwards compatibility. Any calls to guestfs_wait_ready() can be removed from client code. --- python/t/010-launch.py | 1 - python/t/050-lvcreate.py | 1 - 2 files changed, 2 deletions(-) (limited to 'python') diff --git a/python/t/010-launch.py b/python/t/010-launch.py index c1316d29..93a8154a 100644 --- a/python/t/010-launch.py +++ b/python/t/010-launch.py @@ -24,6 +24,5 @@ f.truncate (500 * 1024 * 1024) f.close () g.add_drive ("test.img") g.launch () -g.wait_ready () os.unlink ("test.img") diff --git a/python/t/050-lvcreate.py b/python/t/050-lvcreate.py index 8503023f..f98fe29f 100644 --- a/python/t/050-lvcreate.py +++ b/python/t/050-lvcreate.py @@ -24,7 +24,6 @@ f.truncate (500 * 1024 * 1024) f.close () g.add_drive ("test.img") g.launch () -g.wait_ready () g.pvcreate ("/dev/sda") g.vgcreate ("VG", ["/dev/sda"]) g.lvcreate ("LV1", "VG", 200) -- cgit