summaryrefslogtreecommitdiff
path: root/nova/version.py
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2012-01-11 07:19:59 +0000
committerMark McLoughlin <markmc@redhat.com>2012-01-11 07:19:59 +0000
commitbd035a5a6d2d36102986da491c996f1c17fcda40 (patch)
treeb8c129f56a472c8b9a4e35fccbc19722ecb5ed39 /nova/version.py
parent4c5586a28fd7a085369c49f6039876ffdc86b526 (diff)
downloadnova-bd035a5a6d2d36102986da491c996f1c17fcda40.tar.gz
Add optional revision field to version number
Add a revision field to the version number to account for releases from the stable branch, e.g. 2011.3.1. See http://wiki.openstack.org/StableBranchRelease Change-Id: I34238a5639d34c9cf44655775a6be80fdd446233
Diffstat (limited to 'nova/version.py')
-rw-r--r--nova/version.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/version.py b/nova/version.py
index 9a6563b808..8f6641ef5c 100644
--- a/nova/version.py
+++ b/nova/version.py
@@ -14,13 +14,13 @@
# License for the specific language governing permissions and limitations
# under the License.
-NOVA_VERSION = ['2012', '1']
-YEAR, COUNT = NOVA_VERSION
+NOVA_VERSION = ['2012', '1', None]
+YEAR, COUNT, REVISION = NOVA_VERSION
FINAL = False # This becomes true at Release Candidate time
def canonical_version_string():
- return '.'.join([YEAR, COUNT])
+ return '.'.join(filter(None, NOVA_VERSION))
def version_string():