Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
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
eeaec84f
authored
Apr 15, 2019
by
edems
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend volume method
parent
43d92fff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
implementation/storage/OpenstackStorageManager.py
+8
-0
interface/storage/StorageManager.py
+3
-0
No files found.
implementation/storage/OpenstackStorageManager.py
View file @
eeaec84f
...
...
@@ -61,6 +61,14 @@ class OpenstackStorageManager(StorageManager):
return
True
def
extend
(
self
,
id
,
size
):
try
:
self
.
openstack
.
block_storage
.
extend_volume
(
id
,
size
)
except
ResourceNotFound
:
return
False
return
True
def
list
(
self
):
volumes
=
[]
...
...
interface/storage/StorageManager.py
View file @
eeaec84f
...
...
@@ -17,5 +17,8 @@ class StorageManager:
def
delete
(
self
,
id
):
raise
NotImplementedError
def
extend
(
self
,
id
,
size
):
raise
NotImplementedError
def
list
(
self
):
raise
NotImplementedError
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