
from pbr import version as pbr_version

CINDER_VENDOR = "OpenStack Foundation"
CINDER_PRODUCT = "OpenStack Cinder"
CINDER_PACKAGE = None  # OS distro package version suffix

loaded = False
version_info = pbr_version.VersionInfo('cinder')
version_string = version_info.version_string


CINDER_VENDOR = "OpenStack Foundation"
CINDER_PRODUCT = "OpenStack Cinder"
CINDER_PACKAGE = None  # OS distro package version suffix

loaded = False


class VersionInfo:
    version = "REDHATCINDERVERSION"
    release = "REDHATCINDERRELEASE"

    def release_string(self):
        return '%s-%s' % (self.version, self.release)

    def version_string(self):
        return self.version

version_info = VersionInfo()
version_string = version_info.version_string

Remove runtime dep on python-pbr, python-d2to1
Remove runtime dep on python-pbr, python-d2to1

Requires RPM spec to fill in REDHATCINDERVERSION.

- 
- from pbr import version as pbr_version
  
  CINDER_VENDOR = "OpenStack Foundation"
  CINDER_PRODUCT = "OpenStack Cinder"
  CINDER_PACKAGE = None  # OS distro package version suffix
  
  loaded = False
- version_info = pbr_version.VersionInfo('cinder')
+ 
+ 
+ class VersionInfo:
+     version = "REDHATCINDERVERSION"
+     release = "REDHATCINDERRELEASE"
+ 
+     def release_string(self):
+         return '%s-%s' % (self.version, self.release)
+ 
+     def version_string(self):
+         return self.version
+ 
+ version_info = VersionInfo()
  version_string = version_info.version_string
  
Remove runtime dep on python-pbr, python-d2to1
## Code Before:

from pbr import version as pbr_version

CINDER_VENDOR = "OpenStack Foundation"
CINDER_PRODUCT = "OpenStack Cinder"
CINDER_PACKAGE = None  # OS distro package version suffix

loaded = False
version_info = pbr_version.VersionInfo('cinder')
version_string = version_info.version_string

## Instruction:
Remove runtime dep on python-pbr, python-d2to1
## Code After:

CINDER_VENDOR = "OpenStack Foundation"
CINDER_PRODUCT = "OpenStack Cinder"
CINDER_PACKAGE = None  # OS distro package version suffix

loaded = False


class VersionInfo:
    version = "REDHATCINDERVERSION"
    release = "REDHATCINDERRELEASE"

    def release_string(self):
        return '%s-%s' % (self.version, self.release)

    def version_string(self):
        return self.version

version_info = VersionInfo()
version_string = version_info.version_string
