Remove locals() from compute directory

Replace locals() with dictionary of the values to be printed

Change-Id: Iec926e859a5b340a04d9ada7c770b58eecd450b6
This commit is contained in:
Gary Kotton
2013-06-24 12:47:29 +00:00
parent c7b4a3513c
commit 4fbc164bd7
4 changed files with 21 additions and 20 deletions

View File

@@ -138,7 +138,8 @@ def get_device_name_for_instance(context, instance, bdms, device):
prefix = '/dev/xvd'
if req_prefix != prefix:
LOG.debug(_("Using %(prefix)s instead of %(req_prefix)s") % locals())
LOG.debug(_("Using %(prefix)s instead of %(req_prefix)s"),
{'prefix': prefix, 'req_prefix': req_prefix})
used_letters = set()
for device_path in mappings.itervalues():