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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
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
Hide 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