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
e6bba405
authored
Oct 02, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shutdown: use args instead of **kwargs
parent
64a1d1b9
Show 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 @
e6bba405
...
...
@@ -206,9 +206,9 @@ class shutdown(AbortableTask):
time_limit
=
120
@req_connection
def
run
(
self
,
**
kw
args
):
def
run
(
self
,
args
):
from
time
import
sleep
name
=
kwargs
[
'name'
]
name
,
=
args
try
:
domain
=
lookupByName
(
name
)
domain
.
shutdown
()
...
...
@@ -221,7 +221,7 @@ class shutdown(AbortableTask):
else
:
raise
else
:
if
self
.
is_aborted
(
**
kwargs
):
if
self
.
is_aborted
():
logging
.
info
(
"Shutdown aborted on vm:
%
s"
,
name
)
return
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