Previous topic

The cinder.openstack.common.uuidutils Module

Next topic

The cinder.policy Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.openstack.common.version Module

Utilities for consuming the version from pkg_resources.

class VersionInfo(package)

Bases: object

cached_version_string(prefix='')

Generate an object which will expand in a string context to the results of version_string(). We do this so that don’t call into pkg_resources every time we start up a program when passing version information into the CONF constructor, but rather only do the calculation when and if a version is requested

canonical_version_string()

Return the short version minus any alpha/beta tags.

release_string()

Return the full version of the package including suffixes indicating VCS status.

version_string()

Return the short version minus any alpha/beta tags.

version_string_with_vcs()

Return the full version of the package including suffixes indicating VCS status.