mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-27 11:41:52 +03:00
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
This commit is contained in:
committed by
Daniel Veillard
parent
879d7b5d24
commit
99a00dbc20
@ -52,7 +52,7 @@ else:
|
|||||||
initrdU = "<initrd>" + initrdU + "</initrd>"
|
initrdU = "<initrd>" + initrdU + "</initrd>"
|
||||||
|
|
||||||
|
|
||||||
conn = libvirt.openReadOnly(None)
|
conn = libvirt.open(None)
|
||||||
if conn == None:
|
if conn == None:
|
||||||
print 'Failed to open connection to the hypervisor'
|
print 'Failed to open connection to the hypervisor'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
Reference in New Issue
Block a user