Fix problem running glance --version

__version__ should point to a string and not VersionInfo

Fixes LP# 1164760

Change-Id: I27d366af5ed89d0931ef46eb1507e6ba0eec0b6e
This commit is contained in:
Davanum Srinivas
2013-04-05 09:46:19 -04:00
parent 0995045f2a
commit b0ce15be3e

View File

@@ -25,4 +25,11 @@ except ImportError:
from glanceclient.openstack.common import version as common_version
__version__ = common_version.VersionInfo('python-glanceclient')
#__version__ = common_version.VersionInfo('python-glanceclient')
version_info = common_version.VersionInfo('python-glanceclient')
try:
__version__ = version_info.version_string()
except AttributeError:
__version__ = None