summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2
diff options
context:
space:
mode:
authoryfzhao <dsware@126.com>2017-03-21 14:40:28 +0800
committeryfzhao <dsware@126.com>2017-03-21 17:23:09 +0800
commit535def34473565135c44e7870aab03a4ac1614aa (patch)
tree062268b7da09103430003570aa39f88624b24833 /openstackclient/compute/v2
parent6329c04297f7f08159eb1e9a0e3c089e188397af (diff)
downloadpython-openstackclient-535def34473565135c44e7870aab03a4ac1614aa.tar.gz
Remove log translations
Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions. Change-Id: I504de69b2e64250740ebcab432042a16f966fdbe Closes-Bug: #1674584
Diffstat (limited to 'openstackclient/compute/v2')
-rw-r--r--openstackclient/compute/v2/service.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/openstackclient/compute/v2/service.py b/openstackclient/compute/v2/service.py
index 7b18c2e5..b5b9bd5e 100644
--- a/openstackclient/compute/v2/service.py
+++ b/openstackclient/compute/v2/service.py
@@ -22,7 +22,6 @@ from osc_lib import exceptions
from osc_lib import utils
from openstackclient.i18n import _
-from openstackclient.i18n import _LE
LOG = logging.getLogger(__name__)
@@ -189,7 +188,7 @@ class SetService(command.Command):
cs.disable(parsed_args.host, parsed_args.service)
except Exception:
status = "enabled" if enabled else "disabled"
- LOG.error(_LE("Failed to set service status to %s"), status)
+ LOG.error("Failed to set service status to %s", status)
result += 1
force_down = None
@@ -203,7 +202,7 @@ class SetService(command.Command):
force_down=force_down)
except Exception:
state = "down" if force_down else "up"
- LOG.error(_LE("Failed to set service state to %s"), state)
+ LOG.error("Failed to set service state to %s", state)
result += 1
if result > 0: