KeyErrror 'volume' occurs when filter file does not existed
Bug #1857945 reported by
Yang Youseok
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Yang Youseok |
Bug Description
api/v2/volumes.py _get_volume_
Changed in cinder: | |
assignee: | nobody → Yang Youseok (ileixe) |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/696804 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=fe7cf6be84c a133da31d97beb9 593b79fad34e0e
Committed: https:/
Submitter: Zuul
Branch: master
commit fe7cf6be84ca133 da31d97beb9593b 79fad34e0e
Author: Yang Youseok <email address hidden>
Date: Fri Nov 29 19:18:28 2019 +0900
Fix KeyError exception when volume filter file does not exist
Since current code assume that resource key is existed, exception
happens when filter file does not initialized. Return empty list
to avoid KeyError exception.
Closes-Bug: #1857945 ffedc4bf5ddc45e 21c2d22c3e2
Change-Id: I2d3c0f3f8d2c02