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
8ca8e716
authored
Oct 16, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
operation: on success change size in database as well
parent
d4c7fdc3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
circle/vm/operations.py
+5
-0
No files found.
circle/vm/operations.py
View file @
8ca8e716
...
...
@@ -264,6 +264,11 @@ class ResizeDiskOperation(RemoteInstanceOperation):
ugettext_noop
(
"resize disk
%(name)
s to
%(size)
s"
),
size
=
filesizeformat
(
kwargs
[
'size'
]),
name
=
kwargs
[
'disk'
]
.
name
)
def
_operation
(
self
,
disk
,
size
):
super
(
ResizeDiskOperation
,
self
)
.
_operation
(
disk
=
disk
,
size
=
size
)
disk
.
size
=
size
disk
.
save
()
@register_operation
class
DownloadDiskOperation
(
InstanceOperation
):
...
...
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