Comment 5 for bug 1085984

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

Reviewed: https://review.openstack.org/17439
Committed: http://github.com/openstack/oslo-incubator/commit/c67f2881a4bbe5958048610458180c3f9d914964
Submitter: Jenkins
Branch: master

commit c67f2881a4bbe5958048610458180c3f9d914964
Author: Davanum Srinivas <email address hidden>
Date: Mon Dec 3 23:51:18 2012 -0500

    Fix broken --version command

    The code for lazy loading of version string was broken. The way it
    breaks in glance and oslo is different. This patch is just for oslo.
    Here we end up overriding more methods in our lazy string class to make
    argparse happy and added test cases to make sure we don't break again.
    we also sure we cache the result of the lookup so we return the same
    version everytime and for performance. Added a few test cases as well.

    Fixes LP #1085984

    Change-Id: I0635899c37fa8e5a7edf282907d2a5e04aa064cb