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
65680e84
authored
Mar 25, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: removed base images at save_as
This caused problems detecting childs for delete
parent
f068fe84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
circle/storage/models.py
+4
-4
No files found.
circle/storage/models.py
View file @
65680e84
...
...
@@ -477,8 +477,8 @@ class Disk(AclBase, TimeStampedModel):
The timeout parameter is not used now.
"""
mapping
=
{
'qcow2-snap'
:
(
'qcow2-norm'
,
self
.
base
)
,
'qcow2-norm'
:
(
'qcow2-norm'
,
self
)
,
'qcow2-snap'
:
'qcow2-norm'
,
'qcow2-norm'
:
'qcow2-norm'
,
}
if
self
.
type
not
in
mapping
.
keys
():
raise
self
.
WrongDiskTypeError
(
self
.
type
)
...
...
@@ -492,9 +492,9 @@ class Disk(AclBase, TimeStampedModel):
# from this point on, the caller has to guarantee that the disk is not
# going to be used until the operation is complete
new_type
,
new_base
=
mapping
[
self
.
type
]
new_type
=
mapping
[
self
.
type
]
disk
=
Disk
.
create
(
base
=
new_base
,
datastore
=
self
.
datastore
,
disk
=
Disk
.
create
(
datastore
=
self
.
datastore
,
name
=
self
.
name
,
size
=
self
.
size
,
type
=
new_type
)
...
...
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