Commit 198a35f6 by Őry Máté

fix pep8

parent 9baf343e
...@@ -19,7 +19,7 @@ class VMInstance: ...@@ -19,7 +19,7 @@ class VMInstance:
def __init__(self, def __init__(self,
name, name,
vcpu, vcpu,
memory_max, memory_max,
memory=None, memory=None,
emulator='/usr/bin/kvm', emulator='/usr/bin/kvm',
cpu_share=100, cpu_share=100,
...@@ -115,13 +115,14 @@ class VMInstance: ...@@ -115,13 +115,14 @@ class VMInstance:
'type': self.graphics['type'], 'type': self.graphics['type'],
'listen': self.graphics['listen'], 'listen': self.graphics['listen'],
'port': str(self.graphics['port']), 'port': str(self.graphics['port']),
#'passwd': self.graphics['passwd'], TODO: Add this as option # 'passwd': self.graphics['passwd'],
# TODO: Add this as option
}) })
ET.SubElement(devices, ET.SubElement(devices,
'input', 'input',
attrib={ attrib={
'type': 'tablet', 'type': 'tablet',
'bus': 'usb',}) 'bus': 'usb', })
# Features (TODO: features as list) # Features (TODO: features as list)
features = ET.SubElement(xml_top, 'features') features = ET.SubElement(xml_top, 'features')
if self.acpi: if self.acpi:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment