Datera volume throws exception with invalid parameter name

Bug #1462096 reported by Earle F. Philhower, III
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Earle F. Philhower, III

Bug Description

In cinder/volume/driver/datera.py it throws a VolumeDriverException with a named parameter "msg". The parameter name should be "message"

...snip...
    def _wait_for_resource(self, id, resource_type):
        result = self._issue_api_request(resource_type, 'get', id)
        if result['status'] == 'available':
            return
        else:
> raise exception.VolumeDriverException(msg=_('Resource not ready.'))

Should be
> raise exception.VolumeDriverException(message=_('Resource not ready.'))

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/188606

Changed in cinder:
assignee: nobody → Earle F. Philhower, III (earle-philhower-iii)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/188606
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=339a74ca918c42b0ea04cc9821d2860f16c67868
Submitter: Jenkins
Branch: master

commit 339a74ca918c42b0ea04cc9821d2860f16c67868
Author: Earle F. Philhower, III <email address hidden>
Date: Thu Jun 4 14:57:50 2015 -0700

    Fix exception parameter name

    Trivial fix for an exception parameter being passed in via the
    wrong named parameter.

    Change-Id: I55cb8b181dea58b7feea8f715ae06942d6e4c784
    Closes-Bug: 1462096

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-1 → 7.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.