Merge "lib/tempest: Do not rely on six for image_size_in_gib"

This commit is contained in:
Zuul 2019-12-13 20:48:01 +00:00 committed by Gerrit Code Review
commit 1a6c22e489

View File

@ -107,7 +107,7 @@ function remove_disabled_extensions {
function image_size_in_gib {
local size
size=$(openstack image show $1 -c size -f value)
echo $size | python -c "import math; import six; print(int(math.ceil(float(int(six.moves.input()) / 1024.0 ** 3))))"
echo $size | python3 -c "import math; print(int(math.ceil(float(int(input()) / 1024.0 ** 3))))"
}
# configure_tempest() - Set config files, create data dirs, etc