1. Fixed 500 error when an invalid value is passed to 'delete_on_termination'
parameter in 'block_device_mapping' of create server API (json request).
Converted the value to 'bool' (similar to XML request workflow) to fix issue.
2. Also added unit test coverage.
Reviewed: https:/ /review. openstack. org/16664 github. com/openstack/ nova/commit/ 42a85c08d6a3e00 5a800b6c3f61d42 dc8a26b1bb
Committed: http://
Submitter: Jenkins
Branch: stable/folsom
commit 42a85c08d6a3e00 5a800b6c3f61d42 dc8a26b1bb
Author: Unmesh Gurjar <email address hidden>
Date: Thu Oct 11 23:48:08 2012 -0700
Fix error on invalid delete_ on_termination value
1. Fixed 500 error when an invalid value is passed to 'delete_ on_termination' device_ mapping' of create server API (json request).
parameter in 'block_
Converted the value to 'bool' (similar to XML request workflow) to fix issue.
2. Also added unit test coverage.
Fixes LP: #1060955
Change-Id: Ib35040f17a3712 dac45ec1e3c2f32 fee17db7c03 021b5bf0eb9726a f833db4074)
(cherry picked from commit 7c9761b3bb52788