From f926d86530f9d656de7e602304579b18f972a7db Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Fri, 4 May 2012 10:46:06 +0100 Subject: Use ConfigOpts.find_file() to locate policy.json Use cfg's new helper method to find policy config file. The basic behavior is "look alongside the config file" with a fall back to the standard default config paths. Change-Id: I763097107c53fc9b7d4e783ee92bf16989d92cff --- nova/utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/utils.py') diff --git a/nova/utils.py b/nova/utils.py index c57833c54..195b441e0 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -1332,6 +1332,7 @@ def read_cached_file(filename, cache_info, reload_func=None): """ mtime = os.path.getmtime(filename) if not cache_info or mtime != cache_info.get('mtime'): + LOG.debug(_("Reloading cached file %s") % filename) with open(filename) as fap: cache_info['data'] = fap.read() cache_info['mtime'] = mtime -- cgit