Move the __init__ method to top to improve readability

Change-Id: I0c6339161e2abeaa11479e70333fc17ac2d9aae1
This commit is contained in:
caoyuan 2018-03-21 17:26:26 +08:00
parent 24499c1505
commit 0eb17ac536
1 changed files with 9 additions and 9 deletions

View File

@ -26,6 +26,15 @@ LOG = log.getLogger(__name__)
class MultipleStorage(base.Storage):
_type = 'multiple'
def __init__(self, storages):
"""
:param storages:
:type storages: list[freezer.storage.base.Storage]
:return:
"""
super(MultipleStorage, self).__init__()
self.storages = storages
def info(self):
for s in self.storages:
s.info()
@ -94,15 +103,6 @@ class MultipleStorage(base.Storage):
for storage in self.storages:
storage.put_engine_metadata(from_path, backup)
def __init__(self, storages):
"""
:param storages:
:type storages: list[freezer.storage.base.Storage]
:return:
"""
super(MultipleStorage, self).__init__()
self.storages = storages
def download_freezer_meta_data(self, backup):
# TODO(DEKLAN): Need to implement.
pass