LOG marker mismatch in the code

For example:
in lvm.py "LOG.warning(_LI" should be "LOG.warning(_LW"

Change-Id: I3a4a95e6d3f2ba3cc9322d5924613827497f202c
Closes-Bug: #1645166
This commit is contained in:
zhangyanxian 2016-11-30 06:36:29 +00:00
parent 845ba22619
commit eabe8276b2
2 changed files with 3 additions and 3 deletions
manila/share

@ -244,7 +244,7 @@ class LVMShareDriver(LVMMixin, driver.ShareDriver):
try:
os.rmdir(mount_path)
except OSError:
LOG.warning(_LI('Unable to delete %s'), mount_path)
LOG.warning(_LW('Unable to delete %s'), mount_path)
def ensure_share(self, ctx, share, share_server=None):
"""Ensure that storage are mounted and exported."""
@ -259,7 +259,7 @@ class LVMShareDriver(LVMMixin, driver.ShareDriver):
self._get_helper(share).remove_export(self.share_server,
share['name'])
except exception.ProcessExecutionError:
LOG.warning(_LI("Can't remove share %r"), share['id'])
LOG.warning(_LW("Can't remove share %r"), share['id'])
except exception.InvalidShare as exc:
LOG.warning(exc.message)

@ -1986,7 +1986,7 @@ class ShareManager(manager.SchedulerDependentManager):
if not snapshot_update.get('size'):
snapshot_update['size'] = snapshot_ref['share']['size']
LOG.warning(_LI("Cannot get the size of the snapshot "
LOG.warning(_LW("Cannot get the size of the snapshot "
"%(snapshot_id)s. Using the size of "
"the share instead."),
{'snapshot_id': snapshot_id})