summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorRick Harris <rconradharris@gmail.com>2013-05-15 01:41:16 +0000
committerRick Harris <rconradharris@gmail.com>2013-05-16 23:18:16 +0000
commit7f1670e9fbeb086913c89b07a1bc02854319e412 (patch)
treee85fcdf8f9292f2f01f799ed9d61332af9e10382 /nova/utils.py
parent1d5d58c96974a2e5742887aafb48675084fbfd48 (diff)
downloadnova-7f1670e9fbeb086913c89b07a1bc02854319e412.tar.gz
nova-7f1670e9fbeb086913c89b07a1bc02854319e412.tar.xz
nova-7f1670e9fbeb086913c89b07a1bc02854319e412.zip
Cast `size` to int before comparison
`_get_and_check_image_metadata` pulls `size` from the image, which comes in as string, but fails to convert it to an integer before comparing with the flavor's `root_gb` size. This patch adds the cast along with some test coverage for this method. Fixes bug 1180159 Change-Id: I92bc9d6a808e49173d806e434cb145c751c8314a
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions