Fix help messages for update commands
Help messages for the host-update and lease-update commands were wrongly referring to delete rather than update. Change-Id: I489a30ec04e98e557256f8ad30757e9be82f22f1 Closes-Bug: #1643765
This commit is contained in:
@@ -147,9 +147,9 @@ class UpdateCommand(ClimateCommand):
|
|||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super(UpdateCommand, self).get_parser(prog_name)
|
parser = super(UpdateCommand, self).get_parser(prog_name)
|
||||||
if self.allow_names:
|
if self.allow_names:
|
||||||
help_str = 'ID or name of %s to delete'
|
help_str = 'ID or name of %s to update'
|
||||||
else:
|
else:
|
||||||
help_str = 'ID of %s to delete'
|
help_str = 'ID of %s to update'
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'id', metavar=self.resource.upper(),
|
'id', metavar=self.resource.upper(),
|
||||||
help=help_str % self.resource
|
help=help_str % self.resource
|
||||||
|
Reference in New Issue
Block a user