5c074998a14df2c6d511c75ba186e0bbd2cb74b2
The line:size_gb = int((image_size + units.Gi - 1) / units.Gi). Its intent is to get ceiling of size_gb. we can use python math module math.ceil() function. This can improve code readability and more in line with the python style. This patch improves it. Change-Id: I0171d78a55810c35d1b6dbb8632c3d0594f287c1 Closes-Bug: #1592376
Glance Store Library
Glance's stores library
- License: Apache License, Version 2.0
- Documentation: http://docs.openstack.org/developer/glance_store
- Source: http://git.openstack.org/cgit/openstack/glance_store
- Bugs: http://bugs.launchpad.net/glance-store
Description