Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
19cd54c1
authored
Sep 27, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: extract queue name value to variable
parent
127e1fd8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
circle/storage/models.py
+5
-6
No files found.
circle/storage/models.py
View file @
19cd54c1
...
@@ -148,15 +148,14 @@ class Disk(TimeStampedModel):
...
@@ -148,15 +148,14 @@ class Disk(TimeStampedModel):
return
False
return
False
# Delegate create / snapshot jobs
# Delegate create / snapshot jobs
queue_name
=
self
.
datastore
.
hostname
+
".storage"
disk_desc
=
self
.
get_disk_desc
()
disk_desc
=
self
.
get_disk_desc
()
if
self
.
type
==
'qcow2-snap'
:
if
self
.
type
==
'qcow2-snap'
:
remote_tasks
.
snapshot
.
apply_async
(
remote_tasks
.
snapshot
.
apply_async
(
args
=
[
disk_desc
],
args
=
[
disk_desc
],
queue
=
queue_name
)
.
get
()
queue
=
self
.
datastore
.
hostname
+
".storage"
)
.
get
()
else
:
else
:
remote_tasks
.
create
.
apply_async
(
remote_tasks
.
create
.
apply_async
(
args
=
[
disk_desc
],
args
=
[
disk_desc
],
queue
=
queue_name
)
.
get
()
queue
=
self
.
datastore
.
hostname
+
".storage"
)
.
get
()
self
.
ready
=
True
self
.
ready
=
True
self
.
save
()
self
.
save
()
...
...
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