summaryrefslogtreecommitdiffstats
path: root/python/t
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-14 12:42:24 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-14 12:42:24 +0100
commit7486fc6f43bdb22a989cc039e361afc4c0658d52 (patch)
treeeebbe3e0bb3ec8c79a1a60961f1d7c2ea96a28e1 /python/t
parentb48ae2eadf43315159f2174c8fd35b05ede14c0f (diff)
downloadlibguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.tar.gz
libguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.tar.xz
libguestfs-7486fc6f43bdb22a989cc039e361afc4c0658d52.zip
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).
Diffstat (limited to 'python/t')
-rw-r--r--python/t/060-optargs.py6
-rw-r--r--python/t/rhbz811650.py2
2 files changed, 4 insertions, 4 deletions
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).