Fix wrong arg number for _fix_id_migration issue

If the provider_location doesn't contain the name of the volume, TGT and
ISER will fail on doing a id migration, due to wrong number of
arguments.

Change-Id: I420ceaf14edfb6a0e3b8fd1f50070dc70b6f16bd
Closes-Bug: #1386902
This commit is contained in:
Mike Perez
2014-10-28 14:48:50 -07:00
parent 6c7af06cd1
commit f61b3bd0be

View File

@@ -103,7 +103,7 @@ class _ExportMixin(object):
msg = _('Detected inconsistency in provider_location id')
LOG.debug('%s', msg)
old_name = self._fix_id_migration(context, volume)
old_name = self._fix_id_migration(context, volume, vg_name)
if 'in-use' in volume['status']:
old_name = None
self.create_iscsi_target(iscsi_name, iscsi_target, 0, volume_path,