Adds methods in version.py for proper oslo_reports setup

The current implementation not provide useful information, such as a version
info to Guru Meditation report. This fix adds additional methods to version.py
that provide general information about used octavia package.

Change-Id: If546c4f737bcdd5575f57805762480bdcd590064
Closes-Bug: #1589858
This commit is contained in:
Sergey Belous 2016-06-03 18:57:10 +03:00
parent 63524a885a
commit 70183aa9ec

View File

@ -14,4 +14,19 @@
import pbr.version
OCTAVIA_VENDOR = "OpenStack Foundation"
OCTAVIA_PRODUCT = "OpenStack Octavia"
version_info = pbr.version.VersionInfo('octavia')
def vendor_string():
return OCTAVIA_VENDOR
def product_string():
return OCTAVIA_PRODUCT
def version_string_with_package():
return version_info.version_string()