コード例 #1
0
 def _get_restore_runner(self, backup_type):
     """Returns the RestoreRunner associated with this backup type."""
     try:
         runner = get_restore_strategy(backup_type, CONF.restore_namespace)
     except ImportError:
         raise UnknownBackupType("Unknown Backup type: %s" % backup_type)
     return runner
コード例 #2
0
 def _get_restore_runner(self, backup_type):
     """Returns the RestoreRunner associated with this backup type."""
     try:
         runner = get_restore_strategy(backup_type, RESTORE_NAMESPACE)
     except ImportError:
         raise UnknownBackupType("Unknown Backup type: %s in namespace %s" %
                                 (backup_type, RESTORE_NAMESPACE))
     return runner
コード例 #3
0
 def _get_restore_runner(self, backup_type):
     """Returns the RestoreRunner associated with this backup type."""
     try:
         runner = get_restore_strategy(backup_type, RESTORE_NAMESPACE)
     except ImportError:
         raise UnknownBackupType(_("Unknown Backup type: %(type)s in "
                                   "namespace %(ns)s")
                                 % {"type": backup_type,
                                    "ns": RESTORE_NAMESPACE})
     return runner