From 38d16b3fcef0774668361773c00cf88a5db89226 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 17 Dec 2012 12:17:59 +0000 Subject: [PATCH] Remove obsolete VCS version info completely The VCS version string in nova/version.py has been hardcoded to 'LOCALBRANCH:LOCALVERSION' since change 0bbb0e8cb1daa351af91cf97b2bcababfc0c7f9f The only places which use this info are some logging calls, and since 'nova-manager version' command. The latter would more usefully output the distro specific package string. Delete the VCS related methods in version.py and replace their usage with a new method version_string_with_package() which appends the distro-specific package tag Change-Id: I972b79c329198cb5376d537c6b672830094cd759 Signed-off-by: Daniel P. Berrange --- bin/nova-manage | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/nova-manage b/bin/nova-manage index c761ff6c..2ff96f50 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -1100,9 +1100,7 @@ def main(): sys.exit(2) if CONF.category.name == "version": - print (_("%(version)s (%(vcs)s)") % - {'version': version.version_string(), - 'vcs': version.version_string_with_vcs()}) + print version.version_string_with_package() sys.exit(0) if CONF.category.name == "bash-completion":