Merge "Remove obsolete get_backup_driver functions"

This commit is contained in:
Zuul 2019-05-02 00:46:49 +00:00 committed by Gerrit Code Review
commit f4333c8a6f
9 changed files with 0 additions and 42 deletions

View File

@ -1290,7 +1290,3 @@ class CephBackupDriver(driver.BackupDriver):
LOG.debug("Delete of backup '%(backup)s' for volume " LOG.debug("Delete of backup '%(backup)s' for volume "
"'%(volume)s' finished.", "'%(volume)s' finished.",
{'backup': backup.id, 'volume': backup.volume_id}) {'backup': backup.id, 'volume': backup.volume_id})
def get_backup_driver(context):
return CephBackupDriver(context)

View File

@ -394,7 +394,3 @@ class GoogleMediaIoBaseDownload(http.MediaIoBaseDownload):
else: else:
raise http.HttpError(resp, content, uri=self._uri) raise http.HttpError(resp, content, uri=self._uri)
def get_backup_driver(context):
return GoogleBackupDriver(context)

View File

@ -93,7 +93,3 @@ class GlusterfsBackupDriver(posix.PosixBackupDriver):
run_as_root=True) run_as_root=True)
return mount_path return mount_path
def get_backup_driver(context):
return GlusterfsBackupDriver(context)

View File

@ -103,7 +103,3 @@ class NFSBackupDriver(posix.PosixBackupDriver):
run_as_root=True) run_as_root=True)
return mount_path return mount_path
def get_backup_driver(context):
return NFSBackupDriver(context)

View File

@ -148,7 +148,3 @@ class PosixBackupDriver(chunkeddriver.ChunkedBackupDriver):
def get_extra_metadata(self, backup, volume): def get_extra_metadata(self, backup, volume):
return None return None
def get_backup_driver(context):
return PosixBackupDriver(context)

View File

@ -396,13 +396,3 @@ class SwiftBackupDriver(chunkeddriver.ChunkedBackupDriver):
LOG.exception("Can not get Swift capabilities during backup " LOG.exception("Can not get Swift capabilities during backup "
"driver initialization.") "driver initialization.")
raise raise
def get_backup_driver(context):
# NOTE(mdovgal): at the moment of backup service start we need to
# get driver class instance and for swift at that moment
# we can't get all necessary information like endpoints
# from context, so we have exception as a result.
if context.user is None:
return SwiftBackupDriver(None)
return SwiftBackupDriver(context)

View File

@ -541,7 +541,3 @@ class TSMBackupDriver(driver.BackupDriver):
'err': err}) 'err': err})
LOG.debug('Delete %s finished.', backup['id']) LOG.debug('Delete %s finished.', backup['id'])
def get_backup_driver(context):
return TSMBackupDriver(context)

View File

@ -32,7 +32,3 @@ class FakeBackupService(driver.BackupDriver):
# otherwise we return without error # otherwise we return without error
if backup['display_name'] == 'fail_on_delete': if backup['display_name'] == 'fail_on_delete':
raise IOError('fake') raise IOError('fake')
def get_backup_driver(context):
return FakeBackupService(context)

View File

@ -21,7 +21,3 @@ class FakeBackupServiceWithVerify(driver.BackupDriverWithVerify,
fake_service.FakeBackupService): fake_service.FakeBackupService):
def verify(self, backup): def verify(self, backup):
pass pass
def get_backup_driver(context):
return FakeBackupServiceWithVerify(context)