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:
parent
4aeb966792
commit
2f1e7ee4e1
@ -148,12 +148,13 @@ def _md5sum_file(path):
|
|||||||
while True:
|
while True:
|
||||||
data = file_object.read(65535)
|
data = file_object.read(65535)
|
||||||
if not data:
|
if not data:
|
||||||
break
|
break
|
||||||
checksum.update(data)
|
checksum.update(data)
|
||||||
return checksum.hexdigest()
|
return checksum.hexdigest()
|
||||||
except Excption, e:
|
except Excption, e:
|
||||||
print("Checksum operaction failed: %s" % e.message)
|
print("Checksum operaction failed: %s" % e.message)
|
||||||
|
|
||||||
|
|
||||||
def _glance_download(module, glance, image_id, path):
|
def _glance_download(module, glance, image_id, path):
|
||||||
image_checksum = _glance_get_image_checksum(glance, image_id)
|
image_checksum = _glance_get_image_checksum(glance, image_id)
|
||||||
if os.path.isfile(path):
|
if os.path.isfile(path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user