diff --git a/openstackclient/network/v2/network_qos_rule_type.py b/openstackclient/network/v2/network_qos_rule_type.py index 82a265b8c9..657eb54b95 100644 --- a/openstackclient/network/v2/network_qos_rule_type.py +++ b/openstackclient/network/v2/network_qos_rule_type.py @@ -18,12 +18,14 @@ import logging from osc_lib.command import command from osc_lib import utils +from openstackclient.i18n import _ + LOG = logging.getLogger(__name__) class ListNetworkQosRuleType(command.Lister): - """List QoS rule types""" + _description = _("List QoS rule types") def take_action(self, parsed_args): client = self.app.client_manager.network diff --git a/openstackclient/network/v2/network_service_provider.py b/openstackclient/network/v2/network_service_provider.py index 3aa33c23bd..157948cc4b 100644 --- a/openstackclient/network/v2/network_service_provider.py +++ b/openstackclient/network/v2/network_service_provider.py @@ -16,9 +16,11 @@ from osc_lib.command import command from osc_lib import utils +from openstackclient.i18n import _ + class ListNetworkServiceProvider(command.Lister): - """List Service Providers""" + _description = _("List Service Providers") def take_action(self, parsed_args): client = self.app.client_manager.network diff --git a/openstackclient/volume/v1/volume_snapshot.py b/openstackclient/volume/v1/volume_snapshot.py index 77c93ad4fb..45bd30c044 100644 --- a/openstackclient/volume/v1/volume_snapshot.py +++ b/openstackclient/volume/v1/volume_snapshot.py @@ -31,7 +31,7 @@ LOG = logging.getLogger(__name__) class CreateVolumeSnapshot(command.ShowOne): - """Create new volume snapshot""" + _description = _("Create new volume snapshot") def get_parser(self, prog_name): parser = super(CreateVolumeSnapshot, self).get_parser(prog_name) @@ -84,7 +84,7 @@ class CreateVolumeSnapshot(command.ShowOne): class DeleteVolumeSnapshot(command.Command): - """Delete volume snapshot(s)""" + _description = _("Delete volume snapshot(s)") def get_parser(self, prog_name): parser = super(DeleteVolumeSnapshot, self).get_parser(prog_name) @@ -119,7 +119,7 @@ class DeleteVolumeSnapshot(command.Command): class ListVolumeSnapshot(command.Lister): - """List volume snapshots""" + _description = _("List volume snapshots") def get_parser(self, prog_name): parser = super(ListVolumeSnapshot, self).get_parser(prog_name) @@ -220,7 +220,7 @@ class ListVolumeSnapshot(command.Lister): class SetVolumeSnapshot(command.Command): - """Set volume snapshot properties""" + _description = _("Set volume snapshot properties") def get_parser(self, prog_name): parser = super(SetVolumeSnapshot, self).get_parser(prog_name) @@ -281,7 +281,7 @@ class SetVolumeSnapshot(command.Command): class ShowVolumeSnapshot(command.ShowOne): - """Display volume snapshot details""" + _description = _("Display volume snapshot details") def get_parser(self, prog_name): parser = super(ShowVolumeSnapshot, self).get_parser(prog_name) @@ -305,7 +305,7 @@ class ShowVolumeSnapshot(command.ShowOne): class UnsetVolumeSnapshot(command.Command): - """Unset volume snapshot properties""" + _description = _("Unset volume snapshot properties") def get_parser(self, prog_name): parser = super(UnsetVolumeSnapshot, self).get_parser(prog_name)