Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate volume_size in block_device_mapping
Reject invalid values for volume_size upfront. For compatibility with old python-novaclient, an empty volume_size is ignored. Create a common _validate_int_value() function for validating that a parameter is an integer in a given range. Use it also for min_count/max_count to share code. Fixes LP Bug#1199539 Change-Id: I18ac285d5b3c8200d7706c7d577809b15d6ab9e8
- Loading branch information
1 parent
161de55
commit 3ff6676
Showing
2 changed files
with
57 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters