]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix python examples to use read-write conn
authorDan Kenigsberg <danken@redhat.com>
Mon, 6 Jul 2009 15:05:41 +0000 (17:05 +0200)
committerDaniel Veillard <veillard@redhat.com>
Mon, 6 Jul 2009 15:05:41 +0000 (17:05 +0200)
* 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

docs/examples/python/domstart.py
python/tests/create.py

index 64434c414f6d29179066c2e02c25595814082b9f..52fb79e8406bc21a5caa006d7113e3def99dcc44 100755 (executable)
@@ -32,7 +32,7 @@ if len(sys.argv) != 2:
 
 (name, xmldesc) = read_domain(sys.argv[1])
 
-conn = libvirt.openReadOnly(None)
+conn = libvirt.open(None)
 if conn == None:
     print 'Failed to open connection to the hypervisor'
     sys.exit(1)
index 0da89a91474bfb7da317a5a27ad03a994c0127ec..d2c434eb65d63f3e4aadd40749798adc47def941 100755 (executable)
@@ -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)