Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ef9fe79e
authored
Oct 03, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-vm-tasks' into 'master'
Feature vm tasks See merge request
!4
parents
64a1d1b9
e6bba405
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vmdriver.py
+3
-3
No files found.
vmdriver.py
View file @
ef9fe79e
...
@@ -206,9 +206,9 @@ class shutdown(AbortableTask):
...
@@ -206,9 +206,9 @@ class shutdown(AbortableTask):
time_limit
=
120
time_limit
=
120
@req_connection
@req_connection
def
run
(
self
,
**
kw
args
):
def
run
(
self
,
args
):
from
time
import
sleep
from
time
import
sleep
name
=
kwargs
[
'name'
]
name
,
=
args
try
:
try
:
domain
=
lookupByName
(
name
)
domain
=
lookupByName
(
name
)
domain
.
shutdown
()
domain
.
shutdown
()
...
@@ -221,7 +221,7 @@ class shutdown(AbortableTask):
...
@@ -221,7 +221,7 @@ class shutdown(AbortableTask):
else
:
else
:
raise
raise
else
:
else
:
if
self
.
is_aborted
(
**
kwargs
):
if
self
.
is_aborted
():
logging
.
info
(
"Shutdown aborted on vm:
%
s"
,
name
)
logging
.
info
(
"Shutdown aborted on vm:
%
s"
,
name
)
return
return
sleep
(
5
)
sleep
(
5
)
...
...
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