diff options
| author | zhiyong.dai <zhiyong.dai@easystack.cn> | 2016-12-18 02:34:07 +0800 |
|---|---|---|
| committer | zhiyong.dai <zhiyong.dai@easystack.cn> | 2016-12-18 02:43:27 +0800 |
| commit | 25c563d0d8e1b9cc5d9bcafa93b33628e29aed58 (patch) | |
| tree | 25ae968f6c9471b5bee5a41fb07b98f05eff1c28 /openstackclient/volume | |
| parent | a17687288b11b4c2b2e61cbfdcf2d3e9211da71f (diff) | |
| download | python-openstackclient-25c563d0d8e1b9cc5d9bcafa93b33628e29aed58.tar.gz | |
Tivial:update the description format in volume_snapshot.py
Replace the old description format with "_description = _( )"
Change-Id: I36d61621309cfceefbd1ab1b930fa94b4bad2036
Diffstat (limited to 'openstackclient/volume')
| -rw-r--r-- | openstackclient/volume/v2/volume_snapshot.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openstackclient/volume/v2/volume_snapshot.py b/openstackclient/volume/v2/volume_snapshot.py index 34b8fb82..af29b777 100644 --- a/openstackclient/volume/v2/volume_snapshot.py +++ b/openstackclient/volume/v2/volume_snapshot.py @@ -30,7 +30,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) @@ -113,7 +113,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) @@ -155,7 +155,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) @@ -266,7 +266,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) @@ -347,7 +347,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) @@ -369,7 +369,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) |
