Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
e8e24d8b
authored
Sep 24, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
operation: add status to save_as operation
parent
34bf3f22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
circle/storage/models.py
+2
-1
circle/vm/operations.py
+1
-0
No files found.
circle/storage/models.py
View file @
e8e24d8b
...
@@ -474,7 +474,8 @@ class Disk(TimeStampedModel):
...
@@ -474,7 +474,8 @@ class Disk(TimeStampedModel):
queue_name
=
self
.
get_remote_queue_name
(
"storage"
,
priority
=
"slow"
)
queue_name
=
self
.
get_remote_queue_name
(
"storage"
,
priority
=
"slow"
)
remote
=
storage_tasks
.
merge
.
apply_async
(
kwargs
=
{
remote
=
storage_tasks
.
merge
.
apply_async
(
kwargs
=
{
"old_json"
:
self
.
get_disk_desc
(),
"old_json"
:
self
.
get_disk_desc
(),
"new_json"
:
disk
.
get_disk_desc
()},
"new_json"
:
disk
.
get_disk_desc
(),
"parent_id"
:
task
.
request
.
id
},
queue
=
queue_name
queue
=
queue_name
)
# Timeout
)
# Timeout
while
True
:
while
True
:
...
...
circle/vm/operations.py
View file @
e8e24d8b
...
@@ -523,6 +523,7 @@ class SaveAsTemplateOperation(InstanceOperation):
...
@@ -523,6 +523,7 @@ class SaveAsTemplateOperation(InstanceOperation):
"with users and groups. Anyone who has access to a "
"with users and groups. Anyone who has access to a "
"template (and to the networks it uses) will be able to "
"template (and to the networks it uses) will be able to "
"start an instance of it."
)
"start an instance of it."
)
has_percentage
=
True
abortable
=
True
abortable
=
True
required_perms
=
(
'vm.create_template'
,
)
required_perms
=
(
'vm.create_template'
,
)
accept_states
=
(
'RUNNING'
,
'STOPPED'
)
accept_states
=
(
'RUNNING'
,
'STOPPED'
)
...
...
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