Fix spelling errors in aggregates section
Change-Id: I7bd0533861168eef31dcd055ae79746f1a1a6dc7
This commit is contained in:
parent
d263f1f7b8
commit
983b28d051
@ -89,7 +89,7 @@ You'll find complete documentation on the shell by running
|
|||||||
aggregate-details Show details of the specified aggregate.
|
aggregate-details Show details of the specified aggregate.
|
||||||
aggregate-list Print a list of all aggregates.
|
aggregate-list Print a list of all aggregates.
|
||||||
aggregate-remove-host
|
aggregate-remove-host
|
||||||
Remove the specified host from the specfied aggregate.
|
Remove the specified host from the specified aggregate.
|
||||||
aggregate-set-metadata
|
aggregate-set-metadata
|
||||||
Update the metadata associated with the aggregate.
|
Update the metadata associated with the aggregate.
|
||||||
aggregate-update Update the aggregate's name and optionally
|
aggregate-update Update the aggregate's name and optionally
|
||||||
|
@ -1518,10 +1518,10 @@ def do_aggregate_create(cs, args):
|
|||||||
def do_aggregate_delete(cs, args):
|
def do_aggregate_delete(cs, args):
|
||||||
"""Delete the aggregate by its id."""
|
"""Delete the aggregate by its id."""
|
||||||
cs.aggregates.delete(args.id)
|
cs.aggregates.delete(args.id)
|
||||||
print "Aggregate %s has been succesfully deleted." % args.id
|
print "Aggregate %s has been successfully deleted." % args.id
|
||||||
|
|
||||||
|
|
||||||
@utils.arg('id', metavar='<id>', help='Aggregate id to udpate.')
|
@utils.arg('id', metavar='<id>', help='Aggregate id to update.')
|
||||||
@utils.arg('name', metavar='<name>', help='Name of aggregate.')
|
@utils.arg('name', metavar='<name>', help='Name of aggregate.')
|
||||||
@utils.arg('availability_zone', metavar='<availability_zone>',
|
@utils.arg('availability_zone', metavar='<availability_zone>',
|
||||||
help='The availability zone of the aggregate.', nargs='?')
|
help='The availability zone of the aggregate.', nargs='?')
|
||||||
@ -1532,11 +1532,11 @@ def do_aggregate_update(cs, args):
|
|||||||
updates["availability_zone"] = args.availability_zone
|
updates["availability_zone"] = args.availability_zone
|
||||||
|
|
||||||
aggregate = cs.aggregates.update(args.id, updates)
|
aggregate = cs.aggregates.update(args.id, updates)
|
||||||
print "Aggregate %s has been succesfully updated." % args.id
|
print "Aggregate %s has been successfully updated." % args.id
|
||||||
_print_aggregate_details(aggregate)
|
_print_aggregate_details(aggregate)
|
||||||
|
|
||||||
|
|
||||||
@utils.arg('id', metavar='<id>', help='Aggregate id to udpate.')
|
@utils.arg('id', metavar='<id>', help='Aggregate id to update.')
|
||||||
@utils.arg('metadata',
|
@utils.arg('metadata',
|
||||||
metavar='<key=value>',
|
metavar='<key=value>',
|
||||||
nargs='+',
|
nargs='+',
|
||||||
@ -1547,7 +1547,7 @@ def do_aggregate_set_metadata(cs, args):
|
|||||||
"""Update the metadata associated with the aggregate."""
|
"""Update the metadata associated with the aggregate."""
|
||||||
metadata = _extract_metadata(args)
|
metadata = _extract_metadata(args)
|
||||||
aggregate = cs.aggregates.set_metadata(args.id, metadata)
|
aggregate = cs.aggregates.set_metadata(args.id, metadata)
|
||||||
print "Aggregate %s has been succesfully updated." % args.id
|
print "Aggregate %s has been successfully updated." % args.id
|
||||||
_print_aggregate_details(aggregate)
|
_print_aggregate_details(aggregate)
|
||||||
|
|
||||||
|
|
||||||
@ -1556,16 +1556,16 @@ def do_aggregate_set_metadata(cs, args):
|
|||||||
def do_aggregate_add_host(cs, args):
|
def do_aggregate_add_host(cs, args):
|
||||||
"""Add the host to the specified aggregate."""
|
"""Add the host to the specified aggregate."""
|
||||||
aggregate = cs.aggregates.add_host(args.id, args.host)
|
aggregate = cs.aggregates.add_host(args.id, args.host)
|
||||||
print "Aggregate %s has been succesfully updated." % args.id
|
print "Aggregate %s has been successfully updated." % args.id
|
||||||
_print_aggregate_details(aggregate)
|
_print_aggregate_details(aggregate)
|
||||||
|
|
||||||
|
|
||||||
@utils.arg('id', metavar='<id>', help='Host aggregate id to delete.')
|
@utils.arg('id', metavar='<id>', help='Host aggregate id to delete.')
|
||||||
@utils.arg('host', metavar='<host>', help='The host to add to the aggregate.')
|
@utils.arg('host', metavar='<host>', help='The host to add to the aggregate.')
|
||||||
def do_aggregate_remove_host(cs, args):
|
def do_aggregate_remove_host(cs, args):
|
||||||
"""Remove the specified host from the specfied aggregate."""
|
"""Remove the specified host from the specified aggregate."""
|
||||||
aggregate = cs.aggregates.remove_host(args.id, args.host)
|
aggregate = cs.aggregates.remove_host(args.id, args.host)
|
||||||
print "Aggregate %s has been succesfully updated." % args.id
|
print "Aggregate %s has been successfully updated." % args.id
|
||||||
_print_aggregate_details(aggregate)
|
_print_aggregate_details(aggregate)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user