summaryrefslogtreecommitdiffstats
path: root/openstack/common/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/version.py')
-rw-r--r--openstack/common/version.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/openstack/common/version.py b/openstack/common/version.py
index 1a15645..9c9962a 100644
--- a/openstack/common/version.py
+++ b/openstack/common/version.py
@@ -49,11 +49,11 @@ class VersionInfo(object):
provider = pkg_resources.get_provider(requirement)
return provider.version
except pkg_resources.DistributionNotFound:
- # The most likely cause for this is running tests in a tree with
+ # The most likely cause for this is running tests in a tree
# produced from a tarball where the package itself has not been
- # installed into anything. Check for a PKG-INFO file.
+ # installed into anything. Revert to setup-time logic.
from openstack.common import setup
- return setup.get_version_from_pkg_info(self.package)
+ return setup.get_version(self.package)
def release_string(self):
"""Return the full version of the package including suffixes indicating