Fixing up glance policy json.

This commit is contained in:
Joshua Harlow 2012-02-16 17:14:40 -08:00
parent f630b152fa
commit 73ba7f5bea
3 changed files with 6 additions and 1 deletions

View File

@ -111,3 +111,4 @@ export EC2_SECRET_KEY=$DEMO_SECRET
EOF
fi

View File

@ -134,6 +134,10 @@ class GlanceInstaller(comp.PythonInstallComponent):
(_, bottom) = self._get_source_config(REG_PASTE_CONF)
combined = [top, "### Joined here on %s with file %s" % (date.rcf8222date(), REG_PASTE_CONF), bottom]
return (fn, utils.joinlinesep(*combined))
if config_fn == POLICY_JSON:
fn = sh.joinpths(self.cfgdir, POLICY_JSON)
contents = sh.load_file(fn)
return (fn, contents)
return comp.PythonInstallComponent._get_source_config(self, config_fn)
def _config_adjust(self, contents, name):

View File

@ -98,7 +98,7 @@ fi
"""
fh.write(extern_inc.strip())
_write_line("", fh)
_write_line("", fh)