Slightly better translation friendly formatting

Found these inspired by the email thread and bug filed by
the translation team.

Related-Bug: #1496273
Change-Id: Icc8f341c57cd0e0eb14136d239f51c9699ef6af3
This commit is contained in:
Davanum Srinivas 2015-09-16 06:10:59 -04:00 committed by Davanum Srinivas (dims)
parent 8eef1666e0
commit 16a50ea03d
5 changed files with 7 additions and 7 deletions

View File

@ -203,7 +203,7 @@ class HostState(object):
# can occur when an instance in database is not on host
LOG.warning(_LW("Host %(hostname)s has more disk space than "
"database expected "
"(%(physical)sgb > %(database)sgb)"),
"(%(physical)s GB > %(database)s GB)"),
{'physical': least_gb, 'database': free_gb,
'hostname': compute.hypervisor_hostname})
free_gb = min(least_gb, free_gb)

View File

@ -175,7 +175,7 @@ class ZooKeeperDriver(base.Driver):
# if all_members, weren't populated
LOG.warning(_LW('Problem with acquiring the list of '
'children of %(path)r within a given '
'timeout=%(timeout)rs'),
'timeout=%(timeout)d seconds'),
path, timeout)
else:
all_members = monitor.get_all()

View File

@ -375,8 +375,8 @@ class HostManagerTestCase(test.NoDBTestCase):
objects.ComputeNodeList.get_all(context).AndReturn(fakes.COMPUTE_NODES)
# node 3 host physical disk space is greater than database
host_manager.LOG.warning("Host %(hostname)s has more disk space "
"than database expected (%(physical)sgb >"
" %(database)sgb)",
"than database expected (%(physical)s GB >"
" %(database)s GB)",
{'physical': 3333, 'database': 3072,
'hostname': 'node3'})
# Invalid service

View File

@ -5925,7 +5925,7 @@ class LibvirtDriver(driver.ComputeDriver):
if (len(downtime_steps) > 0 and
elapsed > downtime_steps[0][0]):
downtime = downtime_steps.pop(0)
LOG.info(_LI("Increasing downtime to %(downtime)dms "
LOG.info(_LI("Increasing downtime to %(downtime)d ms "
"after %(waittime)d sec elapsed time"),
{"downtime": downtime[1],
"waittime": downtime[0]},

View File

@ -64,7 +64,7 @@ def create_volume(vg, lv, size, sparse=False):
if size > free_space:
raise RuntimeError(_('Insufficient Space on Volume Group %(vg)s.'
' Only %(free_space)db available,'
' but %(size)db required'
' but %(size)d bytes required'
' by volume %(lv)s.') %
{'vg': vg,
'free_space': free_space,
@ -77,7 +77,7 @@ def create_volume(vg, lv, size, sparse=False):
if free_space < size:
LOG.warn(_LW('Volume group %(vg)s will not be able'
' to hold sparse volume %(lv)s.'
' Virtual volume size is %(size)db,'
' Virtual volume size is %(size)d bytes,'
' but free space on volume group is'
' only %(free_space)db.'),
{'vg': vg,