summaryrefslogtreecommitdiff
path: root/openstackclient/network/v2/floating_ip.py
diff options
context:
space:
mode:
authorSteve Martinelli <s.martinelli@gmail.com>2016-11-13 09:42:09 -0500
committerSteve Martinelli <s.martinelli@gmail.com>2016-11-17 02:33:42 +0000
commit0ef8535036c3739d798fd5627ae142d121f20d42 (patch)
tree7dbbe5e2b5c30d4687bd7b9ad85cdea0e06215bf /openstackclient/network/v2/floating_ip.py
parent6eef3277f5b3ebcceded9963627b78b2307621a9 (diff)
downloadpython-openstackclient-3.4.0.tar.gz
translate all command help strings3.4.0
Leverage the new cliff command class attribute (_description) to get the help of a command, this allows us to mark strings for translation. We could not do this before since the help was grabbed from the docstring. This also depends on a new release of cliff and a bump to the minimum level in osc's requirements. Closes-Bug: 1636209 Depends-On: Id915f6aa7d95a0ff3dc6e2ceaac5decb3f3bf0da Change-Id: I8673080bb5625e8e3c499feaefd42dfc7121e96f
Diffstat (limited to 'openstackclient/network/v2/floating_ip.py')
-rw-r--r--openstackclient/network/v2/floating_ip.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/openstackclient/network/v2/floating_ip.py b/openstackclient/network/v2/floating_ip.py
index 7ae5d448..9b9c38bc 100644
--- a/openstackclient/network/v2/floating_ip.py
+++ b/openstackclient/network/v2/floating_ip.py
@@ -70,7 +70,7 @@ def _get_attrs(client_manager, parsed_args):
class CreateFloatingIP(common.NetworkAndComputeShowOne):
- """Create floating IP"""
+ _description = _("Create floating IP")
def update_parser_common(self, parser):
# In Compute v2 network, floating IPs could be allocated from floating
@@ -130,7 +130,7 @@ class CreateFloatingIP(common.NetworkAndComputeShowOne):
class CreateIPFloating(CreateFloatingIP):
- """Create floating IP"""
+ _description = _("Create floating IP")
# TODO(tangchen): Remove this class and ``ip floating create`` command
# two cycles after Mitaka.
@@ -154,7 +154,7 @@ class CreateIPFloating(CreateFloatingIP):
class DeleteFloatingIP(common.NetworkAndComputeDelete):
- """Delete floating IP(s)"""
+ _description = _("Delete floating IP(s)")
# Used by base class to find resources in parsed_args.
resource = 'floating_ip'
@@ -179,7 +179,7 @@ class DeleteFloatingIP(common.NetworkAndComputeDelete):
class DeleteIPFloating(DeleteFloatingIP):
- """Delete floating IP(s)"""
+ _description = _("Delete floating IP(s)")
# TODO(tangchen): Remove this class and ``ip floating delete`` command
# two cycles after Mitaka.
@@ -203,7 +203,7 @@ class DeleteIPFloating(DeleteFloatingIP):
class ListFloatingIP(common.NetworkAndComputeLister):
- """List floating IP(s)"""
+ _description = _("List floating IP(s)")
def take_action_network(self, client, parsed_args):
columns = (
@@ -258,7 +258,7 @@ class ListFloatingIP(common.NetworkAndComputeLister):
class ListIPFloating(ListFloatingIP):
- """List floating IP(s)"""
+ _description = _("List floating IP(s)")
# TODO(tangchen): Remove this class and ``ip floating list`` command
# two cycles after Mitaka.
@@ -282,7 +282,7 @@ class ListIPFloating(ListFloatingIP):
class ShowFloatingIP(common.NetworkAndComputeShowOne):
- """Display floating IP details"""
+ _description = _("Display floating IP details")
def update_parser_common(self, parser):
parser.add_argument(
@@ -309,7 +309,7 @@ class ShowFloatingIP(common.NetworkAndComputeShowOne):
class ShowIPFloating(ShowFloatingIP):
- """Display floating IP details"""
+ _description = _("Display floating IP details")
# TODO(tangchen): Remove this class and ``ip floating show`` command
# two cycles after Mitaka.