From 6f58fa2c9af349ca2188e141ad920f2d0a205d96 Mon Sep 17 00:00:00 2001 From: Wang Wei Date: Fri, 11 Sep 2015 01:41:38 +0000 Subject: [PATCH] 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 --- novaclient/v2/aggregates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novaclient/v2/aggregates.py b/novaclient/v2/aggregates.py index c2df31526..29d90c0db 100644 --- a/novaclient/v2/aggregates.py +++ b/novaclient/v2/aggregates.py @@ -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)))