(dest, dest_engine) = self._open_session(dest_db)
for table_name in table_list:
- print (_('Importing table %s...' % table_name))
+ print (_('Importing table %s...') % table_name)
table = Table(table_name, src_meta, autoload=True)
new_row = self._map_table(table)
columns = table.columns.keys()
dest.commit()
for table_name in quota_table_list:
- print (_('Importing table %s...' % table_name))
+ print (_('Importing table %s...') % table_name)
table = Table(table_name, src_meta, autoload=True)
new_row = self._map_table(table)
columns = table.columns.keys()
if dest_tgts is None:
try:
dest_tgts = FLAGS.volumes_dir
- except:
+ except Exception:
dest_tgts = '%s/volumes' % FLAGS.state_path
utils.execute('rsync', '-avz', src_tgts, dest_tgts)
if len(presets) > 0:
if len(presets) > 1:
LOG.warning(_('More than one valid preset was '
- 'detected, using %s' % presets[0]))
+ 'detected, using %s') % presets[0])
qos = self.sf_qos_dict[presets[0]]
else:
#if there was no preset, look for explicit settings