Use os_client_config.__version__
Change-Id: I1cfb37ac34d03df5e0b07067483ca2eefea6c1b1
This commit is contained in:
parent
98c26d7a6b
commit
4f7bebb573
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user