Created
February 7, 2013 23:05
-
-
Save jaybuff/4735046 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/glance/common/config.py b/glance/common/config.py | |
index 4f58e2e..0a4bfb3 100644 | |
--- a/glance/common/config.py | |
+++ b/glance/common/config.py | |
@@ -28,8 +28,7 @@ import sys | |
from paste import deploy | |
-from glance.openstack.common import cfg | |
-from glance.version import version_info as version | |
+from glance.openstack.common import cfg, setup | |
paste_deploy_opts = [ | |
cfg.StrOpt('flavor'), | |
@@ -84,7 +83,7 @@ CONF.import_opt('syslog_log_facility', 'glance.openstack.common.log') | |
def parse_args(args=None, usage=None, default_config_files=None): | |
CONF(args=args, | |
project='glance', | |
- version=version.cached_version_string(), | |
+ version=setup.get_version('glance'), | |
usage=usage, | |
default_config_files=default_config_files) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment