Merge pull request #168 from krtyyy/master

Fix for issue 166. Use keystone.conf.sample as input for keystone.conf
This commit is contained in:
Joshua Harlow 2012-04-11 10:56:08 -07:00
commit eff471adea

View File

@ -36,6 +36,7 @@ BIN_DIR = "bin"
# Simple confs
ROOT_CONF = "keystone.conf"
ROOT_SOURCE_FN = "keystone.conf.sample"
CATALOG_CONF = 'default_catalog.templates'
LOGGING_CONF = "logging.conf"
LOGGING_SOURCE_FN = 'logging.conf.sample'
@ -143,6 +144,8 @@ class KeystoneInstaller(comp.PythonInstallComponent):
real_fn = config_fn
if config_fn == LOGGING_CONF:
real_fn = LOGGING_SOURCE_FN
elif config_fn == ROOT_CONF:
real_fn = ROOT_SOURCE_FN
fn = sh.joinpths(self.app_dir, 'etc', real_fn)
return (fn, sh.load_file(fn))