Skip to content

Commit

Permalink
remove runtime dep on python-pbr
Browse files Browse the repository at this point in the history
Change-Id: I6f247f64c561d49c13e3c2f67401fe150b6d47b6
  • Loading branch information
djipko authored and Vladan Popovic committed Aug 11, 2014
1 parent 019a677 commit a19939c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions nova/version.py
Expand Up @@ -12,16 +12,27 @@
# License for the specific language governing permissions and limitations
# under the License.

import pbr.version

from nova.openstack.common.gettextutils import _

NOVA_VENDOR = "OpenStack Foundation"
NOVA_PRODUCT = "OpenStack Nova"
NOVA_PACKAGE = None # OS distro package version suffix

loaded = False
version_info = pbr.version.VersionInfo('nova')


class VersionInfo(object):
release = "REDHATNOVARELEASE"
version = "REDHATNOVAVERSION"

def version_string(self):
return self.version

def release_string(self):
return self.release


version_info = VersionInfo()
version_string = version_info.version_string


Expand Down

0 comments on commit a19939c

Please sign in to comment.