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
1e3ce531
authored
Nov 05, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmdriver: fixed delete to no return and added xml logging
parent
08f13ff5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vmdriver.py
+3
-2
No files found.
vmdriver.py
View file @
1e3ce531
...
...
@@ -117,10 +117,12 @@ def create(vm_desc):
vm
=
VMInstance
.
deserialize
(
vm_desc
)
# Setting proper hypervisor
vm
.
vm_type
=
os
.
getenv
(
"HYPERVISOR_TYPE"
,
"test"
)
xml
=
vm
.
dump_xml
()
logging
.
info
(
xml
)
# Emulating DOMAIN_START_PAUSED FLAG behaviour on test driver
if
vm
.
vm_type
==
"test"
:
connection
.
createXML
(
vm
.
dump_xml
()
,
libvirt
.
VIR_DOMAIN_NONE
)
xml
,
libvirt
.
VIR_DOMAIN_NONE
)
domain
=
lookupByName
(
vm
.
name
)
domain
.
suspend
()
# Real driver create
...
...
@@ -150,7 +152,6 @@ def delete(name):
'''
domain
=
lookupByName
(
name
)
domain
.
destroy
()
return
_parse_info
(
domain
.
info
())
@celery.task
...
...
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