Skip to content

Commit f96219d

Browse files
committed
Fix a description of floatingip-id in (dis)associate commands
Fixes bug 1151328 Also makes positional parameters of Show/Update/Delete commands upper. Change-Id: Ifc6b76954ad987379f765f346167bb73556034f1
1 parent 3709182 commit f96219d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

quantumclient/quantum/v2_0/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ class UpdateCommand(QuantumCommand):
358358
def get_parser(self, prog_name):
359359
parser = super(UpdateCommand, self).get_parser(prog_name)
360360
parser.add_argument(
361-
'id', metavar=self.resource,
361+
'id', metavar=self.resource.upper(),
362362
help='ID or name of %s to update' % self.resource)
363363
self.add_known_arguments(parser)
364364
return parser
@@ -407,7 +407,7 @@ def get_parser(self, prog_name):
407407
else:
408408
help_str = 'ID of %s to delete'
409409
parser.add_argument(
410-
'id', metavar=self.resource,
410+
'id', metavar=self.resource.upper(),
411411
help=help_str % self.resource)
412412
return parser
413413

@@ -550,7 +550,7 @@ def get_parser(self, prog_name):
550550
else:
551551
help_str = 'ID of %s to look up'
552552
parser.add_argument(
553-
'id', metavar=self.resource,
553+
'id', metavar=self.resource.upper(),
554554
help=help_str % self.resource)
555555
return parser
556556

quantumclient/quantum/v2_0/floatingip.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ class AssociateFloatingIP(QuantumCommand):
102102
def get_parser(self, prog_name):
103103
parser = super(AssociateFloatingIP, self).get_parser(prog_name)
104104
parser.add_argument(
105-
'floatingip_id', metavar='floatingip-id',
106-
help='IP address of the floating IP to associate')
105+
'floatingip_id', metavar='FLOATINGIP_ID',
106+
help='ID of the floating IP to associate')
107107
parser.add_argument(
108-
'port_id',
109-
help='ID of the port to be associated with the floatingip')
108+
'port_id', metavar='PORT',
109+
help='ID or name of the port to be associated with the floatingip')
110110
parser.add_argument(
111111
'--fixed-ip-address',
112112
help=('IP address on the port (only required if port has multiple'
@@ -142,8 +142,8 @@ class DisassociateFloatingIP(QuantumCommand):
142142
def get_parser(self, prog_name):
143143
parser = super(DisassociateFloatingIP, self).get_parser(prog_name)
144144
parser.add_argument(
145-
'floatingip_id', metavar='floatingip-id',
146-
help='IP address of the floating IP to associate')
145+
'floatingip_id', metavar='FLOATINGIP_ID',
146+
help='ID of the floating IP to associate')
147147
return parser
148148

149149
def run(self, parsed_args):

0 commit comments

Comments
 (0)