Skip to content

Commit 25c563d

Browse files
author
zhiyong.dai
committed
Tivial:update the description format in volume_snapshot.py
Replace the old description format with "_description = _( )" Change-Id: I36d61621309cfceefbd1ab1b930fa94b4bad2036
1 parent a176872 commit 25c563d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

openstackclient/volume/v2/volume_snapshot.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
class CreateVolumeSnapshot(command.ShowOne):
33-
"""Create new volume snapshot"""
33+
_description = _("Create new volume snapshot")
3434

3535
def get_parser(self, prog_name):
3636
parser = super(CreateVolumeSnapshot, self).get_parser(prog_name)
@@ -113,7 +113,7 @@ def take_action(self, parsed_args):
113113

114114

115115
class DeleteVolumeSnapshot(command.Command):
116-
"""Delete volume snapshot(s)"""
116+
_description = _("Delete volume snapshot(s)")
117117

118118
def get_parser(self, prog_name):
119119
parser = super(DeleteVolumeSnapshot, self).get_parser(prog_name)
@@ -155,7 +155,7 @@ def take_action(self, parsed_args):
155155

156156

157157
class ListVolumeSnapshot(command.Lister):
158-
"""List volume snapshots"""
158+
_description = _("List volume snapshots")
159159

160160
def get_parser(self, prog_name):
161161
parser = super(ListVolumeSnapshot, self).get_parser(prog_name)
@@ -266,7 +266,7 @@ def _format_volume_id(volume_id):
266266

267267

268268
class SetVolumeSnapshot(command.Command):
269-
"""Set volume snapshot properties"""
269+
_description = _("Set volume snapshot properties")
270270

271271
def get_parser(self, prog_name):
272272
parser = super(SetVolumeSnapshot, self).get_parser(prog_name)
@@ -347,7 +347,7 @@ def take_action(self, parsed_args):
347347

348348

349349
class ShowVolumeSnapshot(command.ShowOne):
350-
"""Display volume snapshot details"""
350+
_description = _("Display volume snapshot details")
351351

352352
def get_parser(self, prog_name):
353353
parser = super(ShowVolumeSnapshot, self).get_parser(prog_name)
@@ -369,7 +369,7 @@ def take_action(self, parsed_args):
369369

370370

371371
class UnsetVolumeSnapshot(command.Command):
372-
"""Unset volume snapshot properties"""
372+
_description = _("Unset volume snapshot properties")
373373

374374
def get_parser(self, prog_name):
375375
parser = super(UnsetVolumeSnapshot, self).get_parser(prog_name)

0 commit comments

Comments
 (0)