Use os_client_config.__version__

Change-Id: I1cfb37ac34d03df5e0b07067483ca2eefea6c1b1
This commit is contained in:
Monty Taylor 2016-08-09 08:12:54 -05:00
parent 98c26d7a6b
commit 4f7bebb573
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -30,18 +30,12 @@ except ImportError:
from keystoneauth1 import exceptions
from keystoneauth1 import session
import os_client_config
import pbr.version
from os_http import version
LOG = logging.getLogger(__name__)
# FIXME(jamielennox): OCC should advertise its own version.
# Fix: https://review.openstack.org/#/c/303913/
try:
_occ_version = pbr.version.VersionInfo('os_client_config').version_string()
except Exception:
_occ_version = "unknown"
_occ_version = os_client_config.__version__
formatter_name = 'console' if sys.stdout.isatty() else 'text'