Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
198a35f6
authored
Nov 11, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pep8
parent
9baf343e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vm.py
+4
-3
No files found.
vm.py
View file @
198a35f6
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment