]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
cinder-manage does not print any version information
authorDavanum Srinivas <dims@linux.vnet.ibm.com>
Thu, 14 Mar 2013 12:31:49 +0000 (08:31 -0400)
committerDavanum Srinivas <dims@linux.vnet.ibm.com>
Thu, 14 Mar 2013 12:31:49 +0000 (08:31 -0400)
'cinder-manage --version' does not print anything. We need
to pass in the version information along with the argv and
project information

Change-Id: Ia826874cbbc3316226fb475646a0c146fd3a5955

cinder/flags.py

index 62b0e32d194a8eaa2794031b51f95ffa397dcf8f..bfe7661819d2884b11f5ce6f654d99a126e86a2e 100644 (file)
@@ -32,11 +32,14 @@ import sys
 
 from oslo.config import cfg
 
+from cinder import version
+
 FLAGS = cfg.CONF
 
 
 def parse_args(argv, default_config_files=None):
     FLAGS(argv[1:], project='cinder',
+          version=version.version_string(),
           default_config_files=default_config_files)