Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e4b0d4f3
authored
Jul 30, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix DiskBaseIsNotReady error
parent
951d10c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
circle/storage/models.py
+2
-1
No files found.
circle/storage/models.py
View file @
e4b0d4f3
...
@@ -166,6 +166,7 @@ class Disk(TimeStampedModel):
...
@@ -166,6 +166,7 @@ class Disk(TimeStampedModel):
"deployed."
)
"deployed."
)
def
__init__
(
self
,
disk
,
params
=
None
,
**
kwargs
):
def
__init__
(
self
,
disk
,
params
=
None
,
**
kwargs
):
base
=
kwargs
.
get
(
'base'
)
super
(
Disk
.
WrongDiskTypeError
,
self
)
.
__init__
(
super
(
Disk
.
WrongDiskTypeError
,
self
)
.
__init__
(
disk
,
params
,
name
=
disk
.
name
,
pk
=
disk
.
pk
,
disk
,
params
,
name
=
disk
.
name
,
pk
=
disk
.
pk
,
filename
=
disk
.
filename
,
b_name
=
base
.
name
,
filename
=
disk
.
filename
,
b_name
=
base
.
name
,
...
@@ -343,7 +344,7 @@ class Disk(TimeStampedModel):
...
@@ -343,7 +344,7 @@ class Disk(TimeStampedModel):
if
self
.
is_ready
:
if
self
.
is_ready
:
return
True
return
True
if
self
.
base
and
not
self
.
base
.
is_ready
:
if
self
.
base
and
not
self
.
base
.
is_ready
:
raise
self
.
DiskIsNotReady
(
self
,
base
=
self
.
base
)
raise
self
.
Disk
Base
IsNotReady
(
self
,
base
=
self
.
base
)
queue_name
=
self
.
get_remote_queue_name
(
'storage'
,
priority
=
"fast"
)
queue_name
=
self
.
get_remote_queue_name
(
'storage'
,
priority
=
"fast"
)
disk_desc
=
self
.
get_disk_desc
()
disk_desc
=
self
.
get_disk_desc
()
if
self
.
base
is
not
None
:
if
self
.
base
is
not
None
:
...
...
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