Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d83db63b
authored
Apr 28, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: removed backend parameter from AbortableAsyncResult inside operation
parent
aab4fb6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
circle/vm/models/instance.py
+1
-3
No files found.
circle/vm/models/instance.py
View file @
d83db63b
...
@@ -24,7 +24,6 @@ from taggit.managers import TaggableManager
...
@@ -24,7 +24,6 @@ from taggit.managers import TaggableManager
from
acl.models
import
AclBase
from
acl.models
import
AclBase
from
common.operations
import
OperatedMixin
from
common.operations
import
OperatedMixin
from
manager.mancelery
import
celery
from
..tasks
import
vm_tasks
,
agent_tasks
from
..tasks
import
vm_tasks
,
agent_tasks
from
.activity
import
(
ActivityInProgressError
,
instance_activity
,
from
.activity
import
(
ActivityInProgressError
,
instance_activity
,
InstanceActivity
)
InstanceActivity
)
...
@@ -828,8 +827,7 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
...
@@ -828,8 +827,7 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
return
remote
.
get
(
timeout
=
step
)
return
remote
.
get
(
timeout
=
step
)
except
TimeoutError
:
except
TimeoutError
:
if
task
is
not
None
and
task
.
is_aborted
():
if
task
is
not
None
and
task
.
is_aborted
():
AbortableAsyncResult
(
remote
.
id
,
AbortableAsyncResult
(
remote
.
id
)
.
abort
()
backend
=
celery
.
backend
)
.
abort
()
raise
Exception
(
"Shutdown aborted by user."
)
raise
Exception
(
"Shutdown aborted by user."
)
def
suspend_vm
(
self
,
timeout
=
60
):
def
suspend_vm
(
self
,
timeout
=
60
):
...
...
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