From 7486fc6f43bdb22a989cc039e361afc4c0658d52 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 14 Jul 2012 12:42:24 +0100 Subject: generator: Rename 'add_drive_opts' API to 'add_drive'. By using the once_had_no_optargs flag, this change is backwards compatible for callers (except Haskell, PHP and GObject as discussed in earlier commit). --- python/t/060-optargs.py | 6 +++--- python/t/rhbz811650.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'python/t') diff --git a/python/t/060-optargs.py b/python/t/060-optargs.py index be28a3ce..ae2d934d 100644 --- a/python/t/060-optargs.py +++ b/python/t/060-optargs.py @@ -19,7 +19,7 @@ import os import guestfs g = guestfs.GuestFS() -g.add_drive_opts ("/dev/null") -g.add_drive_opts ("/dev/null", readonly = 1) -g.add_drive_opts ("/dev/null", iface = "virtio", format = "raw") +g.add_drive ("/dev/null") +g.add_drive ("/dev/null", readonly = 1) +g.add_drive ("/dev/null", iface = "virtio", format = "raw") g.close () diff --git a/python/t/rhbz811650.py b/python/t/rhbz811650.py index cf01673f..c84f094b 100644 --- a/python/t/rhbz811650.py +++ b/python/t/rhbz811650.py @@ -25,7 +25,7 @@ f.close () g = guestfs.GuestFS () # Deliberate error: the disk format is supposed to be raw. -g.add_drive_opts ("test.img", format="qcow2"); +g.add_drive ("test.img", format="qcow2"); # Because error() wasn't being called, guestfs_last_error would return # NULL, causing a segfault in the Python bindings (RHBZ#811650). -- cgit