Mercurial > hg > Applications > virsh-wrapper
changeset 45:7f6c5d7355bc
Fix typo in xml attribute
author | atton |
---|---|
date | Fri, 15 Jan 2016 15:22:10 +0900 |
parents | 546504699402 |
children | 6b1dddd65d7c |
files | newvm.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/newvm.py Wed Jan 13 21:15:15 2016 +0900 +++ b/newvm.py Fri Jan 15 15:22:10 2016 +0900 @@ -121,10 +121,10 @@ if (options.debug): # http://wiki.libvirt.org/page/QEMUSwitchToLibvirt domain = config.getroot() - domain.attrib['xmlns:qemu'] = "'http://libvirt.org/schemas/domain/qemu/1.0'" + domain.attrib['xmlns:qemu'] = "http://libvirt.org/schemas/domain/qemu/1.0" qemu_elem = ET.Element('qemu:commandline') - ET.SubElement(qemu_elem, 'qemu', {'value' : '-S'}) - ET.SubElement(qemu_elem, 'qemu', {'value' : ('-s %d' % gen_debug_port())}) + ET.SubElement(qemu_elem, 'qemu:arg', {'value' : '-S'}) + ET.SubElement(qemu_elem, 'qemu:arg', {'value' : ('-s %d' % gen_debug_port())}) domain.append(qemu_elem) if os.path.exists(vm_name + '.xml'):