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:
parent
31d4e026b4
commit
6f58fa2c9a
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user