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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
7877d090
authored
Mar 06, 2014
by
cloud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: remove datastore and dev_num from disk calls
parent
93a92d4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
circle/dashboard/forms.py
+3
-5
No files found.
circle/dashboard/forms.py
View file @
7877d090
...
@@ -770,17 +770,15 @@ class DiskAddForm(forms.Form):
...
@@ -770,17 +770,15 @@ class DiskAddForm(forms.Form):
'type'
:
"qcow2-norm"
,
'type'
:
"qcow2-norm"
,
'datastore'
:
DataStore
.
objects
.
all
()[
0
],
'datastore'
:
DataStore
.
objects
.
all
()[
0
],
'size'
:
data
[
'size'
],
'size'
:
data
[
'size'
],
'dev_num'
:
"a"
,
}
}
d
=
Disk
.
create_empty
(
instance
=
inst
,
user
=
self
.
user
,
**
kwargs
)
d
=
Disk
.
create_empty
(
instance
=
inst
,
user
=
self
.
user
,
**
kwargs
)
else
:
else
:
kwargs
=
{
kwargs
=
{
'name'
:
data
[
'name'
],
'name'
:
data
[
'name'
],
'datastore'
:
DataStore
.
objects
.
all
()[
0
],
'url'
:
data
[
'url'
],
'dev_num'
:
"a"
,
}
}
Disk
.
create_from_url_async
(
data
[
'url'
],
instance
=
inst
,
Disk
.
create_from_url_async
(
instance
=
inst
,
user
=
self
.
user
,
user
=
self
.
user
,
**
kwargs
)
**
kwargs
)
d
=
None
d
=
None
return
d
return
d
...
...
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