Browse Source

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
changes/85/325385/2
Sergey Belous 6 years ago
parent
commit
70183aa9ec
  1. 15
      octavia/version.py

15
octavia/version.py

@ -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()

Loading…
Cancel
Save