Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
abf7af60
authored
Apr 01, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
instance: set iso base when it's cloning
parent
700fbcf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
circle/vm/models/instance.py
+4
-1
No files found.
circle/vm/models/instance.py
View file @
abf7af60
...
...
@@ -171,9 +171,12 @@ class InstanceTemplate(AclBase, VirtualMachineDescModel, TimeStampedModel):
tmpl
.
save
()
def
__clone_disk
(
disk
):
base
=
None
if
disk
.
type
==
"iso"
:
base
=
disk
cloned_disk
=
Disk
.
create
(
datastore
=
disk
.
datastore
,
name
=
disk
.
name
,
size
=
disk
.
size
,
type
=
disk
.
type
)
type
=
disk
.
type
,
base
=
base
)
#Paralell cloning disks
disk
.
clone_async
(
cloned_disk
,
user
=
user
)
return
cloned_disk
...
...
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