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
a1b04595
authored
Apr 08, 2019
by
edems
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
b55fc6db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
implementation/storage/OpenstackSnapshotsManager.py
+3
-2
implementation/storage/OpenstackStorageManager.py
+3
-2
No files found.
implementation/storage/OpenstackSnapshotsManager.py
View file @
a1b04595
import
Snapshot
import
SnapshotManager
import
SnapshotManager
import
openstack
import
openstack
from
interface.storage.Snapshot
import
Snapshot
class
OpenstackSnapshotManager
(
SnapshotManager
.
SnapshotManager
):
class
OpenstackSnapshotManager
(
SnapshotManager
.
SnapshotManager
):
...
@@ -12,7 +13,7 @@ class OpenstackSnapshotManager(SnapshotManager.SnapshotManager):
...
@@ -12,7 +13,7 @@ class OpenstackSnapshotManager(SnapshotManager.SnapshotManager):
@staticmethod
@staticmethod
def
os_snapshot_to_rc_snapshot
(
os_snapshot
):
def
os_snapshot_to_rc_snapshot
(
os_snapshot
):
return
Snapshot
.
Snapshot
(
return
Snapshot
(
os_snapshot
.
id
,
os_snapshot
.
id
,
os_snapshot
.
size
os_snapshot
.
size
)
)
...
...
implementation/storage/OpenstackStorageManager.py
View file @
a1b04595
import
Volume
import
openstack
import
openstack
import
StorageManager
import
StorageManager
from
interface.storage.Volume
import
Volume
class
OpenstackStorageManager
(
StorageManager
.
StorageManager
):
class
OpenstackStorageManager
(
StorageManager
.
StorageManager
):
...
@@ -11,7 +12,7 @@ class OpenstackStorageManager(StorageManager.StorageManager):
...
@@ -11,7 +12,7 @@ class OpenstackStorageManager(StorageManager.StorageManager):
@staticmethod
@staticmethod
def
os_volume_to_rc_volume
(
os_volume
):
def
os_volume_to_rc_volume
(
os_volume
):
return
Volume
.
Volume
(
return
Volume
(
os_volume
.
id
,
os_volume
.
id
,
os_volume
.
size
,
os_volume
.
size
,
os_volume
.
is_bootable
os_volume
.
is_bootable
...
...
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