The iogrp_data is initialized during do_setup loaded.
The vdisk_count is originally used but later removed.
In ValueException raised, the variable is no longer required.
Remove this will give a clearer message when
ValueException raised.
Change-Id: Ib7b6c6a870ddd7932e8da1436d615f9ee458bd93
Closes-Bug: #
1266321
except KeyError:
self._handle_keyerror('lsnode', header)
except ValueError:
- msg = (_('Expected integers for node_count and vdisk_count, '
- 'svcinfo lsiogrp returned: %(node)s and %(vdisk)s') %
- {'node': iogrp_data['node_count'],
- 'vdisk': iogrp_data['vdisk_count']})
+ msg = (_('Expected integer for node_count, '
+ 'svcinfo lsiogrp returned: %(node)s') %
+ {'node': iogrp_data['node_count']})
LOG.error(msg)
raise exception.VolumeBackendAPIException(data=msg)