A mapping key of 'message' in exception.InvalidInput is 'reason'.
cinder/volume/drivers/netapp/iscsi.py and
cinder/volume/drivers/netapp/utils.py had used 'data'.
Change-Id: Ie40fc2f954984350827414edee9226adc80c8033
Closes-Bug: #
1224790
for flag in required_flags:
if not getattr(self.configuration, flag, None):
msg = _('%s is not set') % flag
- raise exception.InvalidInput(data=msg)
+ raise exception.InvalidInput(reason=msg)
def do_setup(self, context):
"""Setup the NetApp Volume driver.
record_step = 50
if not (na_server or isinstance(na_server, NaServer)):
msg = _("Requires an NaServer instance.")
- raise exception.InvalidInput(data=msg)
+ raise exception.InvalidInput(reason=msg)
server = copy.copy(na_server)
if api_family == 'cm':
server.set_vserver(tunnel)