提交 813a2f68 编写于 作者: D Dan Kenigsberg 提交者: Daniel Veillard

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
上级 9fc567db
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册