mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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).
This commit is contained in:
@@ -8,7 +8,7 @@ guestfs-python - How to use libguestfs from Python
|
||||
|
||||
import guestfs
|
||||
g = guestfs.GuestFS ()
|
||||
g.add_drive_opts ("disk.img", format="raw", readonly=1)
|
||||
g.add_drive ("disk.img", format="raw", readonly=1)
|
||||
g.launch ()
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Reference in New Issue
Block a user