diff options
| author | Davanum Srinivas <davanum@gmail.com> | 2012-12-03 23:51:18 -0500 |
|---|---|---|
| committer | Davanum Srinivas <davanum@gmail.com> | 2012-12-04 10:37:33 -0500 |
| commit | c67f2881a4bbe5958048610458180c3f9d914964 (patch) | |
| tree | 16fe1d73cc9bd43152aa182ebc3203b0fa59bffb /openstack/common/jsonutils.py | |
| parent | 45e6afcbf51f07a381b17fbe30a87776ee84ad59 (diff) | |
| download | oslo-c67f2881a4bbe5958048610458180c3f9d914964.tar.gz oslo-c67f2881a4bbe5958048610458180c3f9d914964.tar.xz oslo-c67f2881a4bbe5958048610458180c3f9d914964.zip | |
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
Diffstat (limited to 'openstack/common/jsonutils.py')
0 files changed, 0 insertions, 0 deletions
