diff options
| author | zhiyong.dai <zhiyong.dai@easystack.cn> | 2017-01-03 18:45:49 +0800 |
|---|---|---|
| committer | zhiyong.dai <zhiyong.dai@easystack.cn> | 2017-01-03 21:31:54 +0800 |
| commit | be9e60be4b34ed65206cc0fc69e1b43e3217c2f7 (patch) | |
| tree | 2559a774fadf72a9756a5cd2b89225d8959f6e2e /openstackclient/volume/v1 | |
| parent | 6707957c8752c40b3f53aa28bf0b215d3d05143c (diff) | |
| download | python-openstackclient-be9e60be4b34ed65206cc0fc69e1b43e3217c2f7.tar.gz | |
Update the description format
In network_qos_rule_type.py, network_service_provider.py, server.py and
volume_snapshot.py, the description format is using """ """.
In this patch, the former format is replaced with "_description = _( )".
Change-Id: I6863b01d3534e033df745070037ee45286745c92
Diffstat (limited to 'openstackclient/volume/v1')
| -rw-r--r-- | openstackclient/volume/v1/volume_snapshot.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openstackclient/volume/v1/volume_snapshot.py b/openstackclient/volume/v1/volume_snapshot.py index 77c93ad4..45bd30c0 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) |
