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.
Reviewed: https:/ /review. openstack. org/17439 github. com/openstack/ oslo-incubator/ commit/ c67f2881a4bbe59 58048610458180c 3f9d914964
Committed: http://
Submitter: Jenkins
Branch: master
commit c67f2881a4bbe59 58048610458180c 3f9d914964
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: I0635899c37fa8e 5a7edf282907d2a 5e04aa064cb