Fix mistakes in comments

Each can only delete an aggregate by API,
so, change 'aggregates' to 'aggregate'

Also, change 'Set a aggregate metadata' to
'Set aggregate metadata'

Change-Id: Ieb4a8b2445678da8741794613aede948ba51e5ce
This commit is contained in:
Wang Wei 2015-09-11 01:41:38 +00:00
parent 31d4e026b4
commit 6f58fa2c9a
1 changed files with 2 additions and 2 deletions

View File

@ -85,11 +85,11 @@ class AggregateManager(base.ManagerWithFind):
body, "aggregate")
def set_metadata(self, aggregate, metadata):
"""Set a aggregate metadata, replacing the existing metadata."""
"""Set aggregate metadata, replacing the existing metadata."""
body = {'set_metadata': {'metadata': metadata}}
return self._create("/os-aggregates/%s/action" % base.getid(aggregate),
body, "aggregate")
def delete(self, aggregate):
"""Delete the specified aggregates."""
"""Delete the specified aggregate."""
self._delete('/os-aggregates/%s' % (base.getid(aggregate)))