Comment 6 for bug 1384664

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/132432
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=df02ee8e2a10d2f37a9c013dec157c88b8dce49d
Submitter: Jenkins
Branch: master

commit df02ee8e2a10d2f37a9c013dec157c88b8dce49d
Author: Louis Taylor <email address hidden>
Date: Sat Nov 1 20:49:03 2014 +0000

    Fix Requests breaking download progress bar

    The move to the requests library (dbb242b) broke the progress bar during
    downloading an image with --progress enabled, due to requests returning
    a generator, which has no __len__ function. This patch adds an iterable
    wrapper which provides the length, sourced from Content-Length headers.

    Closes-Bug: #1384664

    Change-Id: I48598a824396bc6e7cba69eb3ce32e7c8f30a18a