translate all command help strings

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
changes/39/396939/8 3.4.0
Steve Martinelli 6 years ago
parent 6eef3277f5
commit 0ef8535036
  1. 2
      openstackclient/common/availability_zone.py
  2. 2
      openstackclient/common/configuration.py
  3. 2
      openstackclient/common/extension.py
  4. 2
      openstackclient/common/limits.py
  5. 4
      openstackclient/common/module.py
  6. 4
      openstackclient/common/quota.py
  7. 8
      openstackclient/compute/v2/agent.py
  8. 16
      openstackclient/compute/v2/aggregate.py
  9. 4
      openstackclient/compute/v2/console.py
  10. 4
      openstackclient/compute/v2/fixedip.py
  11. 12
      openstackclient/compute/v2/flavor.py
  12. 4
      openstackclient/compute/v2/floatingip.py
  13. 7
      openstackclient/compute/v2/host.py
  14. 4
      openstackclient/compute/v2/hypervisor.py
  15. 4
      openstackclient/compute/v2/hypervisor_stats.py
  16. 8
      openstackclient/compute/v2/keypair.py
  17. 65
      openstackclient/compute/v2/server.py
  18. 2
      openstackclient/compute/v2/server_backup.py
  19. 8
      openstackclient/compute/v2/server_group.py
  20. 2
      openstackclient/compute/v2/server_image.py
  21. 6
      openstackclient/compute/v2/service.py
  22. 4
      openstackclient/compute/v2/usage.py
  23. 4
      openstackclient/identity/v2_0/catalog.py
  24. 8
      openstackclient/identity/v2_0/ec2creds.py
  25. 8
      openstackclient/identity/v2_0/endpoint.py
  26. 12
      openstackclient/identity/v2_0/project.py
  27. 14
      openstackclient/identity/v2_0/role.py
  28. 2
      openstackclient/identity/v2_0/role_assignment.py
  29. 8
      openstackclient/identity/v2_0/service.py
  30. 4
      openstackclient/identity/v2_0/token.py
  31. 10
      openstackclient/identity/v2_0/user.py
  32. 4
      openstackclient/identity/v3/catalog.py
  33. 10
      openstackclient/identity/v3/consumer.py
  34. 10
      openstackclient/identity/v3/credential.py
  35. 10
      openstackclient/identity/v3/domain.py
  36. 8
      openstackclient/identity/v3/ec2creds.py
  37. 10
      openstackclient/identity/v3/endpoint.py
  38. 10
      openstackclient/identity/v3/federation_protocol.py
  39. 16
      openstackclient/identity/v3/group.py
  40. 10
      openstackclient/identity/v3/identity_provider.py
  41. 12
      openstackclient/identity/v3/mapping.py
  42. 10
      openstackclient/identity/v3/policy.py
  43. 10
      openstackclient/identity/v3/project.py
  44. 10
      openstackclient/identity/v3/region.py
  45. 16
      openstackclient/identity/v3/role.py
  46. 4
      openstackclient/identity/v3/role_assignment.py
  47. 10
      openstackclient/identity/v3/service.py
  48. 10
      openstackclient/identity/v3/service_provider.py
  49. 10
      openstackclient/identity/v3/token.py
  50. 8
      openstackclient/identity/v3/trust.py
  51. 4
      openstackclient/identity/v3/unscoped_saml.py
  52. 12
      openstackclient/identity/v3/user.py
  53. 12
      openstackclient/image/v1/image.py
  54. 20
      openstackclient/image/v2/image.py
  55. 10
      openstackclient/network/v2/address_scope.py
  56. 16
      openstackclient/network/v2/floating_ip.py
  57. 4
      openstackclient/network/v2/floating_ip_pool.py
  58. 4
      openstackclient/network/v2/ip_availability.py
  59. 10
      openstackclient/network/v2/network.py
  60. 8
      openstackclient/network/v2/network_agent.py
  61. 10
      openstackclient/network/v2/network_qos_policy.py
  62. 10
      openstackclient/network/v2/network_rbac.py
  63. 10
      openstackclient/network/v2/network_segment.py
  64. 12
      openstackclient/network/v2/port.py
  65. 20
      openstackclient/network/v2/router.py
  66. 10
      openstackclient/network/v2/security_group.py
  67. 8
      openstackclient/network/v2/security_group_rule.py
  68. 12
      openstackclient/network/v2/subnet.py
  69. 13
      openstackclient/network/v2/subnet_pool.py
  70. 6
      openstackclient/object/v1/account.py
  71. 14
      openstackclient/object/v1/container.py
  72. 14
      openstackclient/object/v1/object.py
  73. 20
      openstackclient/volume/v1/backup.py
  74. 16
      openstackclient/volume/v1/qos_specs.py
  75. 4
      openstackclient/volume/v1/service.py
  76. 12
      openstackclient/volume/v1/snapshot.py
  77. 14
      openstackclient/volume/v1/volume.py
  78. 10
      openstackclient/volume/v1/volume_transfer_request.py
  79. 12
      openstackclient/volume/v1/volume_type.py
  80. 22
      openstackclient/volume/v2/backup.py
  81. 2
      openstackclient/volume/v2/consistency_group.py
  82. 16
      openstackclient/volume/v2/qos_specs.py
  83. 4
      openstackclient/volume/v2/service.py
  84. 12
      openstackclient/volume/v2/snapshot.py
  85. 14
      openstackclient/volume/v2/volume.py
  86. 10
      openstackclient/volume/v2/volume_transfer_request.py
  87. 12
      openstackclient/volume/v2/volume_type.py

@ -88,7 +88,7 @@ def _xform_network_availability_zone(az):
class ListAvailabilityZone(command.Lister):
"""List availability zones and their status"""
_description = _("List availability zones and their status")
def get_parser(self, prog_name):
parser = super(ListAvailabilityZone, self).get_parser(prog_name)

@ -23,7 +23,7 @@ REDACTED = "<redacted>"
class ShowConfiguration(command.ShowOne):
"""Display configuration details"""
_description = _("Display configuration details")
def get_parser(self, prog_name):
parser = super(ShowConfiguration, self).get_parser(prog_name)

@ -28,7 +28,7 @@ LOG = logging.getLogger(__name__)
class ListExtension(command.Lister):
"""List API extensions"""
_description = _("List API extensions")
def get_parser(self, prog_name):
parser = super(ListExtension, self).get_parser(prog_name)

@ -25,7 +25,7 @@ from openstackclient.identity import common as identity_common
class ShowLimits(command.Lister):
"""Show compute and block storage limits"""
_description = _("Show compute and block storage limits")
def get_parser(self, prog_name):
parser = super(ShowLimits, self).get_parser(prog_name)

@ -25,7 +25,7 @@ from openstackclient.i18n import _
class ListCommand(command.Lister):
"""List recognized commands by group"""
_description = _("List recognized commands by group")
auth_required = False
@ -53,7 +53,7 @@ class ListCommand(command.Lister):
class ListModule(command.ShowOne):
"""List module versions"""
_description = _("List module versions")
auth_required = False

@ -80,7 +80,7 @@ NETWORK_QUOTAS = {
class SetQuota(command.Command):
"""Set quotas for project or class"""
_description = _("Set quotas for project or class")
def _build_options_list(self):
if self.app.client_manager.is_network_endpoint_enabled():
@ -186,7 +186,7 @@ class SetQuota(command.Command):
class ShowQuota(command.ShowOne):
"""Show quotas for project or class"""
_description = _("Show quotas for project or class")
def get_parser(self, prog_name):
parser = super(ShowQuota, self).get_parser(prog_name)

@ -29,7 +29,7 @@ LOG = logging.getLogger(__name__)
class CreateAgent(command.ShowOne):
"""Create compute agent"""
_description = _("Create compute agent")
def get_parser(self, prog_name):
parser = super(CreateAgent, self).get_parser(prog_name)
@ -81,7 +81,7 @@ class CreateAgent(command.ShowOne):
class DeleteAgent(command.Command):
"""Delete compute agent(s)"""
_description = _("Delete compute agent(s)")
def get_parser(self, prog_name):
parser = super(DeleteAgent, self).get_parser(prog_name)
@ -112,7 +112,7 @@ class DeleteAgent(command.Command):
class ListAgent(command.Lister):
"""List compute agents"""
_description = _("List compute agents")
def get_parser(self, prog_name):
parser = super(ListAgent, self).get_parser(prog_name)
@ -142,7 +142,7 @@ class ListAgent(command.Lister):
class SetAgent(command.Command):
"""Set compute agent properties"""
_description = _("Set compute agent properties")
def get_parser(self, prog_name):
parser = super(SetAgent, self).get_parser(prog_name)

@ -31,7 +31,7 @@ LOG = logging.getLogger(__name__)
class AddAggregateHost(command.ShowOne):
"""Add host to aggregate"""
_description = _("Add host to aggregate")
def get_parser(self, prog_name):
parser = super(AddAggregateHost, self).get_parser(prog_name)
@ -62,7 +62,7 @@ class AddAggregateHost(command.ShowOne):
class CreateAggregate(command.ShowOne):
"""Create a new aggregate"""
_description = _("Create a new aggregate")
def get_parser(self, prog_name):
parser = super(CreateAggregate, self).get_parser(prog_name)
@ -105,7 +105,7 @@ class CreateAggregate(command.ShowOne):
class DeleteAggregate(command.Command):
"""Delete existing aggregate(s)"""
_description = _("Delete existing aggregate(s)")
def get_parser(self, prog_name):
parser = super(DeleteAggregate, self).get_parser(prog_name)
@ -139,7 +139,7 @@ class DeleteAggregate(command.Command):
class ListAggregate(command.Lister):
"""List all aggregates"""
_description = _("List all aggregates")
def get_parser(self, prog_name):
parser = super(ListAggregate, self).get_parser(prog_name)
@ -188,7 +188,7 @@ class ListAggregate(command.Lister):
class RemoveAggregateHost(command.ShowOne):
"""Remove host from aggregate"""
_description = _("Remove host from aggregate")
def get_parser(self, prog_name):
parser = super(RemoveAggregateHost, self).get_parser(prog_name)
@ -222,7 +222,7 @@ class RemoveAggregateHost(command.ShowOne):
class SetAggregate(command.Command):
"""Set aggregate properties"""
_description = _("Set aggregate properties")
def get_parser(self, prog_name):
parser = super(SetAggregate, self).get_parser(prog_name)
@ -298,7 +298,7 @@ class SetAggregate(command.Command):
class ShowAggregate(command.ShowOne):
"""Display aggregate details"""
_description = _("Display aggregate details")
def get_parser(self, prog_name):
parser = super(ShowAggregate, self).get_parser(prog_name)
@ -334,7 +334,7 @@ class ShowAggregate(command.ShowOne):
class UnsetAggregate(command.Command):
"""Unset aggregate properties"""
_description = _("Unset aggregate properties")
def get_parser(self, prog_name):
parser = super(UnsetAggregate, self).get_parser(prog_name)

@ -26,7 +26,7 @@ from openstackclient.i18n import _
class ShowConsoleLog(command.Command):
"""Show server's console output"""
_description = _("Show server's console output")
def get_parser(self, prog_name):
parser = super(ShowConsoleLog, self).get_parser(prog_name)
@ -64,7 +64,7 @@ class ShowConsoleLog(command.Command):
class ShowConsoleURL(command.ShowOne):
"""Show server's remote console URL"""
_description = _("Show server's remote console URL")
def get_parser(self, prog_name):
parser = super(ShowConsoleURL, self).get_parser(prog_name)

@ -24,7 +24,7 @@ from openstackclient.i18n import _
class AddFixedIP(command.Command):
"""Add fixed IP address to server"""
_description = _("Add fixed IP address to server")
# TODO(tangchen): Remove this class and ``ip fixed add`` command
# two cycles after Mitaka.
@ -64,7 +64,7 @@ class AddFixedIP(command.Command):
class RemoveFixedIP(command.Command):
"""Remove fixed IP address from server"""
_description = _("Remove fixed IP address from server")
# TODO(tangchen): Remove this class and ``ip fixed remove`` command
# two cycles after Mitaka.

@ -49,7 +49,7 @@ def _find_flavor(compute_client, flavor):
class CreateFlavor(command.ShowOne):
"""Create new flavor"""
_description = _("Create new flavor")
def get_parser(self, prog_name):
parser = super(CreateFlavor, self).get_parser(prog_name)
@ -186,7 +186,7 @@ class CreateFlavor(command.ShowOne):
class DeleteFlavor(command.Command):
"""Delete flavor(s)"""
_description = _("Delete flavor(s)")
def get_parser(self, prog_name):
parser = super(DeleteFlavor, self).get_parser(prog_name)
@ -219,7 +219,7 @@ class DeleteFlavor(command.Command):
class ListFlavor(command.Lister):
"""List flavors"""
_description = _("List flavors")
def get_parser(self, prog_name):
parser = super(ListFlavor, self).get_parser(prog_name)
@ -303,7 +303,7 @@ class ListFlavor(command.Lister):
class SetFlavor(command.Command):
"""Set flavor properties"""
_description = _("Set flavor properties")
def get_parser(self, prog_name):
parser = super(SetFlavor, self).get_parser(prog_name)
@ -366,7 +366,7 @@ class SetFlavor(command.Command):
class ShowFlavor(command.ShowOne):
"""Display flavor details"""
_description = _("Display flavor details")
def get_parser(self, prog_name):
parser = super(ShowFlavor, self).get_parser(prog_name)
@ -409,7 +409,7 @@ class ShowFlavor(command.ShowOne):
class UnsetFlavor(command.Command):
"""Unset flavor properties"""
_description = _("Unset flavor properties")
def get_parser(self, prog_name):
parser = super(UnsetFlavor, self).get_parser(prog_name)

@ -24,7 +24,7 @@ from openstackclient.i18n import _
class AddFloatingIP(command.Command):
"""Add floating IP address to server"""
_description = _("Add floating IP address to server")
# TODO(tangchen): Remove this class and ``ip floating add`` command
# two cycles after Mitaka.
@ -61,7 +61,7 @@ class AddFloatingIP(command.Command):
class RemoveFloatingIP(command.Command):
"""Remove floating IP address from server"""
_description = _("Remove floating IP address from server")
# TODO(tangchen): Remove this class and ``ip floating remove`` command
# two cycles after Mitaka.

@ -22,7 +22,7 @@ from openstackclient.i18n import _
class ListHost(command.Lister):
"""List hosts"""
_description = _("List hosts")
def get_parser(self, prog_name):
parser = super(ListHost, self).get_parser(prog_name)
@ -48,7 +48,8 @@ class ListHost(command.Lister):
class SetHost(command.Command):
"""Set host properties"""
_description = _("Set host properties")
def get_parser(self, prog_name):
parser = super(SetHost, self).get_parser(prog_name)
parser.add_argument(
@ -107,7 +108,7 @@ class SetHost(command.Command):
class ShowHost(command.Lister):
"""Display host details"""
_description = _("Display host details")
def get_parser(self, prog_name):
parser = super(ShowHost, self).get_parser(prog_name)

@ -26,7 +26,7 @@ from openstackclient.i18n import _
class ListHypervisor(command.Lister):
"""List hypervisors"""
_description = _("List hypervisors")
def get_parser(self, prog_name):
parser = super(ListHypervisor, self).get_parser(prog_name)
@ -66,7 +66,7 @@ class ListHypervisor(command.Lister):
class ShowHypervisor(command.ShowOne):
"""Display hypervisor details"""
_description = _("Display hypervisor details")
def get_parser(self, prog_name):
parser = super(ShowHypervisor, self).get_parser(prog_name)

@ -17,9 +17,11 @@
from osc_lib.command import command
import six
from openstackclient.i18n import _
class ShowHypervisorStats(command.ShowOne):
"""Display hypervisor stats details"""
_description = _("Display hypervisor stats details")
def take_action(self, parsed_args):
compute_client = self.app.client_manager.compute

@ -32,7 +32,7 @@ LOG = logging.getLogger(__name__)
class CreateKeypair(command.ShowOne):
"""Create new public or private key for server ssh access"""
_description = _("Create new public or private key for server ssh access")
def get_parser(self, prog_name):
parser = super(CreateKeypair, self).get_parser(prog_name)
@ -83,7 +83,7 @@ class CreateKeypair(command.ShowOne):
class DeleteKeypair(command.Command):
"""Delete public or private key(s)"""
_description = _("Delete public or private key(s)")
def get_parser(self, prog_name):
parser = super(DeleteKeypair, self).get_parser(prog_name)
@ -117,7 +117,7 @@ class DeleteKeypair(command.Command):
class ListKeypair(command.Lister):
"""List key fingerprints"""
_description = _("List key fingerprints")
def take_action(self, parsed_args):
compute_client = self.app.client_manager.compute
@ -134,7 +134,7 @@ class ListKeypair(command.Lister):
class ShowKeypair(command.ShowOne):
"""Display key details"""
_description = _("Display key details")
def get_parser(self, prog_name):
parser = super(ShowKeypair, self).get_parser(prog_name)

@ -175,7 +175,7 @@ def _show_progress(progress):
class AddFixedIP(command.Command):
"""Add fixed IP address to server"""
_description = _("Add fixed IP address to server")
def get_parser(self, prog_name):
parser = super(AddFixedIP, self).get_parser(prog_name)
@ -205,7 +205,7 @@ class AddFixedIP(command.Command):
class AddFloatingIP(command.Command):
"""Add floating IP address to server"""
_description = _("Add floating IP address to server")
def get_parser(self, prog_name):
parser = super(AddFloatingIP, self).get_parser(prog_name)
@ -232,7 +232,7 @@ class AddFloatingIP(command.Command):
class AddServerSecurityGroup(command.Command):
"""Add security group to server"""
_description = _("Add security group to server")
def get_parser(self, prog_name):
parser = super(AddServerSecurityGroup, self).get_parser(prog_name)
@ -264,7 +264,7 @@ class AddServerSecurityGroup(command.Command):
class AddServerVolume(command.Command):
"""Add volume to server"""
_description = _("Add volume to server")
def get_parser(self, prog_name):
parser = super(AddServerVolume, self).get_parser(prog_name)
@ -306,7 +306,7 @@ class AddServerVolume(command.Command):
class CreateServer(command.ShowOne):
"""Create a new server"""
_description = _("Create a new server")
def get_parser(self, prog_name):
parser = super(CreateServer, self).get_parser(prog_name)
@ -642,7 +642,7 @@ class CreateServerDump(command.Command):
class DeleteServer(command.Command):
"""Delete server(s)"""
_description = _("Delete server(s)")
def get_parser(self, prog_name):
parser = super(DeleteServer, self).get_parser(prog_name)
@ -680,7 +680,7 @@ class DeleteServer(command.Command):
class ListServer(command.Lister):
"""List servers"""
_description = _("List servers")
def get_parser(self, prog_name):
parser = super(ListServer, self).get_parser(prog_name)
@ -923,7 +923,8 @@ class ListServer(command.Lister):
class LockServer(command.Command):
"""Lock server(s). A non-admin user will not be able to execute actions"""
_description = _("Lock server(s). A non-admin user will not be able to "
"execute actions")
def get_parser(self, prog_name):
parser = super(LockServer, self).get_parser(prog_name)
@ -956,7 +957,7 @@ class LockServer(command.Command):
# then adding the groups doesn't seem to work
class MigrateServer(command.Command):
"""Migrate server to different host"""
_description = _("Migrate server to different host")
def get_parser(self, prog_name):
parser = super(MigrateServer, self).get_parser(prog_name)
@ -1038,7 +1039,7 @@ class MigrateServer(command.Command):
class PauseServer(command.Command):
"""Pause server(s)"""
_description = _("Pause server(s)")
def get_parser(self, prog_name):
parser = super(PauseServer, self).get_parser(prog_name)
@ -1060,7 +1061,7 @@ class PauseServer(command.Command):
class RebootServer(command.Command):
"""Perform a hard or soft server reboot"""
_description = _("Perform a hard or soft server reboot")
def get_parser(self, prog_name):
parser = super(RebootServer, self).get_parser(prog_name)
@ -1114,7 +1115,7 @@ class RebootServer(command.Command):
class RebuildServer(command.ShowOne):
"""Rebuild server"""
_description = _("Rebuild server")
def get_parser(self, prog_name):
parser = super(RebuildServer, self).get_parser(prog_name)
@ -1170,7 +1171,7 @@ class RebuildServer(command.ShowOne):
class RemoveFixedIP(command.Command):
"""Remove fixed IP address from server"""
_description = _("Remove fixed IP address from server")
def get_parser(self, prog_name):
parser = super(RemoveFixedIP, self).get_parser(prog_name)
@ -1197,7 +1198,7 @@ class RemoveFixedIP(command.Command):
class RemoveFloatingIP(command.Command):
"""Remove floating IP address from server"""
_description = _("Remove floating IP address from server")
def get_parser(self, prog_name):
parser = super(RemoveFloatingIP, self).get_parser(prog_name)
@ -1225,7 +1226,7 @@ class RemoveFloatingIP(command.Command):
class RemoveServerSecurityGroup(command.Command):
"""Remove security group from server"""
_description = _("Remove security group from server")
def get_parser(self, prog_name):
parser = super(RemoveServerSecurityGroup, self).get_parser(prog_name)
@ -1257,7 +1258,7 @@ class RemoveServerSecurityGroup(command.Command):
class RemoveServerVolume(command.Command):
"""Remove volume from server"""
_description = _("Remove volume from server")
def get_parser(self, prog_name):
parser = super(RemoveServerVolume, self).get_parser(prog_name)
@ -1293,7 +1294,7 @@ class RemoveServerVolume(command.Command):
class RescueServer(command.ShowOne):
"""Put server in rescue mode"""
_description = _("Put server in rescue mode")
def get_parser(self, prog_name):
parser = super(RescueServer, self).get_parser(prog_name)
@ -1315,7 +1316,7 @@ class RescueServer(command.ShowOne):
class ResizeServer(command.Command):
"""Scale server to a new flavor"""
_description = _("Scale server to a new flavor")
def get_parser(self, prog_name):
parser = super(ResizeServer, self).get_parser(prog_name)
@ -1380,7 +1381,7 @@ class ResizeServer(command.Command):
class RestoreServer(command.Command):
"""Restore server(s)"""
_description = _("Restore server(s)")
def get_parser(self, prog_name):
parser = super(RestoreServer, self).get_parser(prog_name)
@ -1402,7 +1403,7 @@ class RestoreServer(command.Command):
class ResumeServer(command.Command):
"""Resume server(s)"""
_description = _("Resume server(s)")
def get_parser(self, prog_name):
parser = super(ResumeServer, self).get_parser(prog_name)
@ -1425,7 +1426,7 @@ class ResumeServer(command.Command):
class SetServer(command.Command):
"""Set server properties"""
_description = _("Set server properties")
def get_parser(self, prog_name):
parser = super(SetServer, self).get_parser(prog_name)
@ -1490,7 +1491,7 @@ class SetServer(command.Command):
class ShelveServer(command.Command):
"""Shelve server(s)"""
_description = _("Shelve server(s)")
def get_parser(self, prog_name):
parser = super(ShelveServer, self).get_parser(prog_name)
@ -1512,7 +1513,7 @@ class ShelveServer(command.Command):
class ShowServer(command.ShowOne):
"""Show server details"""
_description = _("Show server details")
def get_parser(self, prog_name):
parser = super(ShowServer, self).get_parser(prog_name)
@ -1546,7 +1547,7 @@ class ShowServer(command.ShowOne):
class SshServer(command.Command):
"""SSH to server"""
_description = _("SSH to server")
def get_parser(self, prog_name):
parser = super(SshServer, self).get_parser(prog_name)
@ -1690,7 +1691,7 @@ class SshServer(command.Command):
class StartServer(command.Command):
"""Start server(s)."""
_description = _("Start server(s).")
def get_parser(self, prog_name):
parser = super(StartServer, self).get_parser(prog_name)
@ -1712,7 +1713,7 @@ class StartServer(command.Command):
class StopServer(command.Command):
"""Stop server(s)."""
_description = _("Stop server(s).")
def get_parser(self, prog_name):
parser = super(StopServer, self).get_parser(prog_name)
@ -1734,7 +1735,7 @@ class StopServer(command.Command):
class SuspendServer(command.Command):
"""Suspend server(s)"""
_description = _("Suspend server(s)")
def get_parser(self, prog_name):
parser = super(SuspendServer, self).get_parser(prog_name)
@ -1757,7 +1758,7 @@ class SuspendServer(command.Command):
class UnlockServer(command.Command):
"""Unlock server(s)"""
_description = _("Unlock server(s)")
def get_parser(self, prog_name):
parser = super(UnlockServer, self).get_parser(prog_name)
@ -1780,7 +1781,7 @@ class UnlockServer(command.Command):
class UnpauseServer(command.Command):
"""Unpause server(s)"""
_description = _("Unpause server(s)")
def get_parser(self, prog_name):
parser = super(UnpauseServer, self).get_parser(prog_name)
@ -1803,7 +1804,7 @@ class UnpauseServer(command.Command):
class UnrescueServer(command.Command):
"""Restore server from rescue mode"""
_description = _("Restore server from rescue mode")
def get_parser(self, prog_name):
parser = super(UnrescueServer, self).get_parser(prog_name)
@ -1824,7 +1825,7 @@ class UnrescueServer(command.Command):
class UnsetServer(command.Command):
"""Unset server properties"""
_description = _("Unset server properties")
def get_parser(self, prog_name):
parser = super(UnsetServer, self).get_parser(prog_name)
@ -1858,7 +1859,7 @@ class UnsetServer(command.Command):
class UnshelveServer(command.Command):
"""Unshelve server(s)"""
_description = _("Unshelve server(s)")
def get_parser(self, prog_name):
parser = super(UnshelveServer, self).get_parser(prog_name)

@ -33,7 +33,7 @@ def _show_progress(progress):
class CreateServerBackup(command.ShowOne):
"""Create a server backup image"""
_description = _("Create a server backup image")
IMAGE_API_VERSIONS = {
"1": "openstackclient.image.v1.image",

@ -43,7 +43,7 @@ def _get_columns(info):
class CreateServerGroup(command.ShowOne):
"""Create a new server group."""
_description = _("Create a new server group.")
def get_parser(self, prog_name):
parser = super(CreateServerGroup, self).get_parser(prog_name)
@ -77,7 +77,7 @@ class CreateServerGroup(command.ShowOne):
class DeleteServerGroup(command.Command):
"""Delete existing server group(s)."""
_description = _("Delete existing server group(s).")
def get_parser(self, prog_name):
parser = super(DeleteServerGroup, self).get_parser(prog_name)
@ -112,7 +112,7 @@ class DeleteServerGroup(command.Command):
class ListServerGroup(command.Lister):
"""List all server groups."""
_description = _("List all server groups.")
def get_parser(self, prog_name):
parser = super(ListServerGroup, self).get_parser(prog_name)
@ -161,7 +161,7 @@ class ListServerGroup(command.Lister):
class ShowServerGroup(command.ShowOne):
"""Display server group details."""
_description = _("Display server group details.")
def get_parser(self, prog_name):
parser = super(ShowServerGroup, self).get_parser(prog_name)

@ -37,7 +37,7 @@ def _show_progress(progress):
class CreateServerImage(command.ShowOne):
"""Create a new server disk image from an existing server"""
_description = _("Create a new server disk image from an existing server")
IMAGE_API_VERSIONS = {
"1": "openstackclient.image.v1.image",

@ -29,7 +29,7 @@ LOG = logging.getLogger(__name__)
class DeleteService(command.Command):
"""Delete compute service(s)"""
_description = _("Delete compute service(s)")
def get_parser(self, prog_name):
parser = super(DeleteService, self).get_parser(prog_name)
@ -61,7 +61,7 @@ class DeleteService(command.Command):
class ListService(command.Lister):
"""List compute services"""
_description = _("List compute services")
def get_parser(self, prog_name):
parser = super(ListService, self).get_parser(prog_name)
@ -115,7 +115,7 @@ class ListService(command.Lister):
class SetService(command.Command):
"""Set compute service properties"""
_description = _("Set compute service properties")
def get_parser(self, prog_name):
parser = super(SetService, self).get_parser(prog_name)

@ -26,7 +26,7 @@ from openstackclient.i18n import _
class ListUsage(command.Lister):
"""List resource usage per project"""
_description = _("List resource usage per project")
def get_parser(self, prog_name):
parser = super(ListUsage, self).get_parser(prog_name)
@ -115,7 +115,7 @@ class ListUsage(command.Lister):
class ShowUsage(command.ShowOne):
"""Show resource usage for a single project"""
_description = _("Show resource usage for a single project")
def get_parser(self, prog_name):
parser = super(ShowUsage, self).get_parser(prog_name)

@ -43,7 +43,7 @@ def _format_endpoints(eps=None):
class ListCatalog(command.Lister):
"""List services in the service catalog"""
_description = _("List services in the service catalog")
def take_action(self, parsed_args):
@ -66,7 +66,7 @@ class ListCatalog(command.Lister):
class ShowCatalog(command.ShowOne):
"""Display service catalog details"""
_description = _("Display service catalog details")
def get_parser(self, prog_name):
parser = super(ShowCatalog, self).get_parser(prog_name)

@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__)
class CreateEC2Creds(command.ShowOne):
"""Create EC2 credentials"""
_description = _("Create EC2 credentials")
def get_parser(self, prog_name):
parser = super(CreateEC2Creds, self).get_parser(prog_name)
@ -86,7 +86,7 @@ class CreateEC2Creds(command.ShowOne):
class DeleteEC2Creds(command.Command):
"""Delete EC2 credentials"""
_description = _("Delete EC2 credentials")
def get_parser(self, prog_name):
parser = super(DeleteEC2Creds, self).get_parser(prog_name)
@ -133,7 +133,7 @@ class DeleteEC2Creds(command.Command):
class ListEC2Creds(command.Lister):
"""List EC2 credentials"""
_description = _("List EC2 credentials")
def get_parser(self, prog_name):
parser = super(ListEC2Creds, self).get_parser(prog_name)
@ -168,7 +168,7 @@ class ListEC2Creds(command.Lister):
class ShowEC2Creds(command.ShowOne):
"""Display EC2 credentials details"""
_description = _("Display EC2 credentials details")
def get_parser(self, prog_name):
parser = super(ShowEC2Creds, self).get_parser(prog_name)

@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__)
class CreateEndpoint(command.ShowOne):
"""Create new endpoint"""
_description = _("Create new endpoint")
def get_parser(self, prog_name):
parser = super(CreateEndpoint, self).get_parser(prog_name)
@ -80,7 +80,7 @@ class CreateEndpoint(command.ShowOne):
class DeleteEndpoint(command.Command):
"""Delete endpoint(s)"""
_description = _("Delete endpoint(s)")
def get_parser(self, prog_name):
parser = super(DeleteEndpoint, self).get_parser(prog_name)
@ -113,7 +113,7 @@ class DeleteEndpoint(command.Command):
class ListEndpoint(command.Lister):
"""List endpoints"""
_description = _("List endpoints")
def get_parser(self, prog_name):
parser = super(ListEndpoint, self).get_parser(prog_name)
@ -146,7 +146,7 @@ class ListEndpoint(command.Lister):
class ShowEndpoint(command.ShowOne):
"""Display endpoint details"""
_description = _("Display endpoint details")
def get_parser(self, prog_name):
parser = super(ShowEndpoint, self).get_parser(prog_name)

@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__)
class CreateProject(command.ShowOne):
"""Create new project"""
_description = _("Create new project")
def get_parser(self, prog_name):
parser = super(CreateProject, self).get_parser(prog_name)
@ -102,7 +102,7 @@ class CreateProject(command.ShowOne):
class DeleteProject(command.Command):
"""Delete project(s)"""
_description = _("Delete project(s)")
def get_parser(self, prog_name):
parser = super(DeleteProject, self).get_parser(prog_name)
@ -126,7 +126,7 @@ class DeleteProject(command.Command):
class ListProject(command.Lister):
"""List projects"""
_description = _("List projects")
def get_parser(self, prog_name):
parser = super(ListProject, self).get_parser(prog_name)
@ -152,7 +152,7 @@ class ListProject(command.Lister):
class SetProject(command.Command):
"""Set project properties"""
_description = _("Set project properties")
def get_parser(self, prog_name):
parser = super(SetProject, self).get_parser(prog_name)
@ -221,7 +221,7 @@ class SetProject(command.Command):
class ShowProject(command.ShowOne):
"""Display project details"""
_description = _("Display project details")
def get_parser(self, prog_name):
parser = super(ShowProject, self).get_parser(prog_name)
@ -279,7 +279,7 @@ class ShowProject(command.ShowOne):
class UnsetProject(command.Command):
"""Unset project properties"""
_description = _("Unset project properties")
def get_parser(self, prog_name):
parser = super(UnsetProject, self).get_parser(prog_name)

@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__)
class AddRole(command.ShowOne):
"""Add role to project:user"""
_description = _("Add role to project:user")
def get_parser(self, prog_name):
parser = super(AddRole, self).get_parser(prog_name)
@ -73,7 +73,7 @@ class AddRole(command.ShowOne):
class CreateRole(command.ShowOne):
"""Create new role"""
_description = _("Create new role")
def get_parser(self, prog_name):
parser = super(CreateRole, self).get_parser(prog_name)
@ -109,7 +109,7 @@ class CreateRole(command.ShowOne):
class DeleteRole(command.Command):
"""Delete role(s)"""
_description = _("Delete role(s)")
def get_parser(self, prog_name):
parser = super(DeleteRole, self).get_parser(prog_name)
@ -133,7 +133,7 @@ class DeleteRole(command.Command):
class ListRole(command.Lister):
"""List roles"""
_description = _("List roles")
def get_parser(self, prog_name):
parser = super(ListRole, self).get_parser(prog_name)
@ -223,7 +223,7 @@ class ListRole(command.Lister):
class ListUserRole(command.Lister):
"""List user-role assignments"""
_description = _("List user-role assignments")
def get_parser(self, prog_name):
parser = super(ListUserRole, self).get_parser(prog_name)
@ -293,7 +293,7 @@ class ListUserRole(command.Lister):
class RemoveRole(command.Command):
"""Remove role from project : user"""
_description = _("Remove role from project : user")
def get_parser(self, prog_name):
parser = super(RemoveRole, self).get_parser(prog_name)
@ -331,7 +331,7 @@ class RemoveRole(command.Command):
class ShowRole(command.ShowOne):
"""Display role details"""
_description = _("Display role details")
def get_parser(self, prog_name):
parser = super(ShowRole, self).get_parser(prog_name)

@ -21,7 +21,7 @@ from openstackclient.i18n import _ # noqa
class ListRoleAssignment(command.Lister):
"""List role assignments"""
_description = _("List role assignments")
def get_parser(self, prog_name):
parser = super(ListRoleAssignment, self).get_parser(prog_name)