Aggregate.save() shouldn't return a value

Unlike all object object save methods, Aggregate.save() returns an
aggregate object. This change removes the return to make it consistent
with other objects.

Change-Id: I2179bc90ae92dd3a4f739aae2802a417bd7e2d9d
This commit is contained in:
Matthew Booth
2014-11-11 17:03:28 +00:00
parent b0fe9e7a03
commit 5db4b03f29

View File

@@ -95,7 +95,7 @@ class Aggregate(base.NovaPersistentObject, base.NovaObject):
compute_utils.notify_about_aggregate_update(context,
"updateprop.end",
payload)
return self._from_db_object(context, self, db_aggregate)
self._from_db_object(context, self, db_aggregate)
@base.remotable
def update_metadata(self, context, updates):