Binaries should report versions.

Bug #1004966.

Added the version_string() and removed the extra '%' for the quantum-server binary.

Change-Id: Ic1f3e2eb9a742bdfb63df6f901e579349f04f3ec
This commit is contained in:
Harsh Prasad 2012-06-11 12:25:18 +05:30
parent 268040c336
commit 56d6f9ce86

View File

@ -25,6 +25,7 @@ import sys
from quantum import service
from quantum.common import config
from quantum.version import version_string
def create_options(parser):
@ -38,7 +39,7 @@ def create_options(parser):
def main():
oparser = optparse.OptionParser(version='%%prog VERSION')
oparser = optparse.OptionParser(version='%prog ' + version_string())
create_options(oparser)
(options, args) = config.parse_options(oparser)