summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Kenigsberg <danken@redhat.com>2009-07-06 17:05:41 +0200
committerDaniel Veillard <veillard@redhat.com>2009-07-06 17:05:41 +0200
commit99a00dbc20ac23fab206f5888f84f38c416d51c3 (patch)
tree41e9874948697c38d486cbd46e20809ce6c35ad7
parent879d7b5d2442b52719d629608539c6f202673954 (diff)
downloadlibvirt-python-v6-99a00dbc20ac23fab206f5888f84f38c416d51c3.tar.gz
libvirt-python-v6-99a00dbc20ac23fab206f5888f84f38c416d51c3.tar.xz
libvirt-python-v6-99a00dbc20ac23fab206f5888f84f38c416d51c3.zip
Fix python examples to use read-write conn
* docs/examples/python/domstart.py python/tests/create.py: The two example were broken as they needed full-access connection but only opened read-only connections
-rwxr-xr-xtests/create.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/create.py b/tests/create.py
index 0da89a9..d2c434e 100755
--- a/tests/create.py
+++ b/tests/create.py
@@ -52,7 +52,7 @@ else:
initrdU = "<initrd>" + initrdU + "</initrd>"
-conn = libvirt.openReadOnly(None)
+conn = libvirt.open(None)
if conn == None:
print 'Failed to open connection to the hypervisor'
sys.exit(1)