summaryrefslogtreecommitdiffstats
path: root/python/examples/create_disk.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/create_disk.py')
-rw-r--r--python/examples/create_disk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/examples/create_disk.py b/python/examples/create_disk.py
index a854c23f..86f50427 100644
--- a/python/examples/create_disk.py
+++ b/python/examples/create_disk.py
@@ -16,7 +16,7 @@ f.close ()
g.set_trace (1)
# Attach the disk image to libguestfs.
-g.add_drive (output, format = "raw", readonly = 0)
+g.add_drive_opts (output, format = "raw", readonly = 0)
# Run the libguestfs back-end.
g.launch ()