diff options
Diffstat (limited to 'nova/scheduler/scheduler_options.py')
-rw-r--r-- | nova/scheduler/scheduler_options.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/scheduler/scheduler_options.py b/nova/scheduler/scheduler_options.py index bae470d1b..5ba2117cc 100644 --- a/nova/scheduler/scheduler_options.py +++ b/nova/scheduler/scheduler_options.py @@ -69,15 +69,15 @@ class SchedulerOptions(object): except os.error as e: with excutils.save_and_reraise_exception(): LOG.exception(_("Could not stat scheduler options file " - "%(filename)s: '%(e)s'"), locals()) + "%(filename)s: '%(e)s'"), + {'filename': filename, 'e': e}) def _load_file(self, handle): """Decode the JSON file. Broken out for testing.""" try: return json.load(handle) except ValueError as e: - LOG.exception(_("Could not decode scheduler options: " - "'%(e)s'") % locals()) + LOG.exception(_("Could not decode scheduler options: '%s'"), e) return {} def _get_time_now(self): |