Skip to content

Commit 82e6942

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Update the description format"
2 parents b957ba8 + be9e60b commit 82e6942

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

openstackclient/network/v2/network_qos_rule_type.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
from osc_lib.command import command
1919
from osc_lib import utils
2020

21+
from openstackclient.i18n import _
22+
2123

2224
LOG = logging.getLogger(__name__)
2325

2426

2527
class ListNetworkQosRuleType(command.Lister):
26-
"""List QoS rule types"""
28+
_description = _("List QoS rule types")
2729

2830
def take_action(self, parsed_args):
2931
client = self.app.client_manager.network

openstackclient/network/v2/network_service_provider.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
from osc_lib.command import command
1717
from osc_lib import utils
1818

19+
from openstackclient.i18n import _
20+
1921

2022
class ListNetworkServiceProvider(command.Lister):
21-
"""List Service Providers"""
23+
_description = _("List Service Providers")
2224

2325
def take_action(self, parsed_args):
2426
client = self.app.client_manager.network

openstackclient/volume/v1/volume_snapshot.py

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

3232

3333
class CreateVolumeSnapshot(command.ShowOne):
34-
"""Create new volume snapshot"""
34+
_description = _("Create new volume snapshot")
3535

3636
def get_parser(self, prog_name):
3737
parser = super(CreateVolumeSnapshot, self).get_parser(prog_name)
@@ -84,7 +84,7 @@ def take_action(self, parsed_args):
8484

8585

8686
class DeleteVolumeSnapshot(command.Command):
87-
"""Delete volume snapshot(s)"""
87+
_description = _("Delete volume snapshot(s)")
8888

8989
def get_parser(self, prog_name):
9090
parser = super(DeleteVolumeSnapshot, self).get_parser(prog_name)
@@ -119,7 +119,7 @@ def take_action(self, parsed_args):
119119

120120

121121
class ListVolumeSnapshot(command.Lister):
122-
"""List volume snapshots"""
122+
_description = _("List volume snapshots")
123123

124124
def get_parser(self, prog_name):
125125
parser = super(ListVolumeSnapshot, self).get_parser(prog_name)
@@ -220,7 +220,7 @@ def _format_volume_id(volume_id):
220220

221221

222222
class SetVolumeSnapshot(command.Command):
223-
"""Set volume snapshot properties"""
223+
_description = _("Set volume snapshot properties")
224224

225225
def get_parser(self, prog_name):
226226
parser = super(SetVolumeSnapshot, self).get_parser(prog_name)
@@ -281,7 +281,7 @@ def take_action(self, parsed_args):
281281

282282

283283
class ShowVolumeSnapshot(command.ShowOne):
284-
"""Display volume snapshot details"""
284+
_description = _("Display volume snapshot details")
285285

286286
def get_parser(self, prog_name):
287287
parser = super(ShowVolumeSnapshot, self).get_parser(prog_name)
@@ -305,7 +305,7 @@ def take_action(self, parsed_args):
305305

306306

307307
class UnsetVolumeSnapshot(command.Command):
308-
"""Unset volume snapshot properties"""
308+
_description = _("Unset volume snapshot properties")
309309

310310
def get_parser(self, prog_name):
311311
parser = super(UnsetVolumeSnapshot, self).get_parser(prog_name)

0 commit comments

Comments
 (0)