Correct syntax issues in glance_download module

Correct syntax issues in the glance download module that caused
the module to fail initial validation.

Change-Id: Id69a07fafd7dee6125e193a3bb0ccb2c585bbfe9
This commit is contained in:
Julia Kreger 2015-01-29 10:34:26 -05:00
parent 4aeb966792
commit 2f1e7ee4e1

View File

@ -148,12 +148,13 @@ def _md5sum_file(path):
while True:
data = file_object.read(65535)
if not data:
break
checksum.update(data)
break
checksum.update(data)
return checksum.hexdigest()
except Excption, e:
print("Checksum operaction failed: %s" % e.message)
def _glance_download(module, glance, image_id, path):
image_checksum = _glance_get_image_checksum(glance, image_id)
if os.path.isfile(path):