Commit a1b04595 by edems

bug fix

parent b55fc6db
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
) )
......
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment