Skip to content

Commit 3c58244

Browse files
author
Brian Haley
committed
Fix some spaces in help messages
Fix some missing and not necessary trailing spaces in the network v2 API files. Also fixed one block indent that was different from all its friends. Trivialfix Change-Id: Ic6491203c2fb9085543d69f0bb5f38e5a96039da
1 parent 01c3548 commit 3c58244

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

openstackclient/network/v2/port.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def _add_updatable_args(parser):
259259
'normal', 'baremetal', 'virtio-forwarder'],
260260
help=_("VNIC type for this port (direct | direct-physical | "
261261
"macvtap | normal | baremetal | virtio-forwarder, "
262-
" default: normal)")
262+
"default: normal)")
263263
)
264264
# NOTE(dtroyer): --host-id is deprecated in Mar 2016. Do not
265265
# remove before 3.x release or Mar 2017.
@@ -669,7 +669,7 @@ def get_parser(self, prog_name):
669669
parser.add_argument(
670670
'--no-binding-profile',
671671
action='store_true',
672-
help=_("Clear existing information of binding:profile."
672+
help=_("Clear existing information of binding:profile. "
673673
"Specify both --binding-profile and --no-binding-profile "
674674
"to overwrite the current binding:profile information.")
675675
)
@@ -723,9 +723,9 @@ def get_parser(self, prog_name):
723723
'--no-allowed-address',
724724
dest='no_allowed_address_pair',
725725
action='store_true',
726-
help=_("Clear existing allowed-address pairs associated"
727-
"with this port."
728-
"(Specify both --allowed-address and --no-allowed-address"
726+
help=_("Clear existing allowed-address pairs associated "
727+
"with this port. "
728+
"(Specify both --allowed-address and --no-allowed-address "
729729
"to overwrite the current allowed-address pairs)")
730730
)
731731
parser.add_argument(
@@ -843,7 +843,7 @@ def get_parser(self, prog_name):
843843
'--binding-profile',
844844
metavar='<binding-profile-key>',
845845
action='append',
846-
help=_("Desired key which should be removed from binding:profile"
846+
help=_("Desired key which should be removed from binding:profile "
847847
"(repeat option to unset multiple binding:profile data)"))
848848
parser.add_argument(
849849
'--security-group',
@@ -867,8 +867,8 @@ def get_parser(self, prog_name):
867867
required_keys=['ip-address'],
868868
optional_keys=['mac-address'],
869869
help=_("Desired allowed-address pair which should be removed "
870-
"from this port: ip-address=<ip-address> "
871-
"[,mac-address=<mac-address>] (repeat option to set "
870+
"from this port: ip-address=<ip-address>"
871+
"[,mac-address=<mac-address>] (repeat option to unset "
872872
"multiple allowed-address pairs)")
873873
)
874874
parser.add_argument(

openstackclient/network/v2/router.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,10 @@ def take_action(self, parsed_args):
611611
elif parsed_args.no_route or parsed_args.clear_routes:
612612
attrs['routes'] = []
613613
if (parsed_args.disable_snat or parsed_args.enable_snat or
614-
parsed_args.fixed_ip) and not parsed_args.external_gateway:
615-
msg = (_("You must specify '--external-gateway' in order"
616-
"to update the SNAT or fixed-ip values"))
617-
raise exceptions.CommandError(msg)
614+
parsed_args.fixed_ip) and not parsed_args.external_gateway:
615+
msg = (_("You must specify '--external-gateway' in order "
616+
"to update the SNAT or fixed-ip values"))
617+
raise exceptions.CommandError(msg)
618618
if parsed_args.external_gateway:
619619
gateway_info = {}
620620
network = client.find_network(

0 commit comments

Comments
 (0)