Nova not always using get to access driver capabilites dict
Bug #1746608 reported by
Eric Berglund
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Eric Berglund |
Bug Description
When accessing the capabilities dict [1], nova should be using dict.get(). Since many compute drivers override the capabilities dictionary,
capabilites[
will fail with a KeyError if their dictionary has not been updated to include the capability. By using get() it will default instead of throwing the KeyError.
[1] https:/
Changed in nova: | |
assignee: | nobody → Eric Berglund (esberglu) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/539715
Review: https:/