Built-in function "raw_input()" is deprecated in favor of "input()" [1].
[1] https://www.python.org/dev/peps/pep-3111/
Change-Id: I31c4c59373a2ad04987da3daffb3eed50916a6db
Closes-Bug: #1823321
| ... | ... |
@@ -107,7 +107,7 @@ function remove_disabled_extensions {
|
| 107 | 107 |
function image_size_in_gib {
|
| 108 | 108 |
local size |
| 109 | 109 |
size=$(openstack image show $1 -c size -f value) |
| 110 |
- echo $size | python -c "import math; print int(math.ceil(float(int(raw_input()) / 1024.0 ** 3)))" |
|
| 110 |
+ echo $size | python -c "import math; import six; print(int(math.ceil(float(int(six.moves.input()) / 1024.0 ** 3))))" |
|
| 111 | 111 |
} |
| 112 | 112 |
|
| 113 | 113 |
# configure_tempest() - Set config files, create data dirs, etc |