Comment 1 for bug 885696

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/1289
Committed: http://github.com/openstack/glance/commit/2674e8bbbcd340d2161c08d272b57acd18684eb8
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 2674e8bbbcd340d2161c08d272b57acd18684eb8
Author: Tomas Hancock <email address hidden>
Date: Thu Nov 3 12:07:34 2011 +0000

    Fix LP Bug#885696 two issues with checked_iter

     The error message raised by IOError needed %locals() added

     If there is no cache in the pipeline image_meta['size'] appears to be of
     type str on my system. Thus the compare of expected_size and bytes_written
     always failed even when the values should have matched.
     Unconditionally convert expected_size to int to resolve this.
     Curiously image_meta['size'] is of type int if the cache is in the pipeline.
     This latter fix could be removed if the typing is resolved

    Change-Id: I05eadce2b5ceb8eb7939acb41668aff089270e21