Merge "lib/tempest: Do not rely on six for image_size_in_gib"
This commit is contained in:
commit
1a6c22e489
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user