summaryrefslogtreecommitdiff
path: root/openstackclient/compute/v2/hypervisor.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-05-24 11:54:13 +0000
committerGerrit Code Review <review@openstack.org>2016-05-24 11:54:14 +0000
commit086c3ab8fabe79834964fb97a902ba67ecaaae85 (patch)
treeef9a841a031258208dc43671ee65ae3441880a47 /openstackclient/compute/v2/hypervisor.py
parent5ae8f1b7d52ca9c94a01aeef13754b1d5a15a91f (diff)
parent5398c96e2a816148cbcde7ce43c46de6721051f6 (diff)
downloadpython-openstackclient-086c3ab8fabe79834964fb97a902ba67ecaaae85.tar.gz
Merge "Fix i18n support for help and error messages in compute"
Diffstat (limited to 'openstackclient/compute/v2/hypervisor.py')
-rw-r--r--openstackclient/compute/v2/hypervisor.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/openstackclient/compute/v2/hypervisor.py b/openstackclient/compute/v2/hypervisor.py
index f5288a35..333a7dea 100644
--- a/openstackclient/compute/v2/hypervisor.py
+++ b/openstackclient/compute/v2/hypervisor.py
@@ -20,6 +20,7 @@ import six
from openstackclient.common import command
from openstackclient.common import utils
+from openstackclient.i18n import _
class ListHypervisor(command.Lister):
@@ -30,7 +31,7 @@ class ListHypervisor(command.Lister):
parser.add_argument(
"--matching",
metavar="<hostname>",
- help="Filter hypervisors using <hostname> substring",
+ help=_("Filter hypervisors using <hostname> substring")
)
return parser
@@ -60,7 +61,8 @@ class ShowHypervisor(command.ShowOne):
parser.add_argument(
"hypervisor",
metavar="<hypervisor>",
- help="Hypervisor to display (name or ID)")
+ help=_("Hypervisor to display (name or ID)")
+ )
return parser
def take_action(self, parsed_args):