Merge "Wrong param makes exception message throws inaccurate"

This commit is contained in:
Jenkins 2016-08-17 15:48:16 +00:00 committed by Gerrit Code Review
commit dbff3f2c6d
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class ISCSIConnector(base.BaseLinuxConnector, base_iscsi.BaseISCSIConnector):
except Exception:
if 'target_portals' in connection_properties:
raise exception.TargetPortalsNotFound(
target_portal=connection_properties['target_portals'])
target_portals=connection_properties['target_portals'])
elif 'target_portal' in connection_properties:
raise exception.TargetPortalNotFound(
target_portal=connection_properties['target_portal'])