diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-07-16 17:36:46 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-07-16 17:36:46 +0000 |
| commit | 9f33802364887dd22e7e87e329f51452650b1edd (patch) | |
| tree | 2b8aa047f864d9df61ebe575ea92d14aa2212909 /nova/api | |
| parent | 0257325a22d1a9e9f1ad7d883f48a480584481db (diff) | |
| parent | c571ebb89bed12f7fde47d1c45d04b1a13382af0 (diff) | |
Merge "General-host-aggregates part 1."
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/contrib/aggregates.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/api/openstack/compute/contrib/aggregates.py b/nova/api/openstack/compute/contrib/aggregates.py index 834131f92..54eca8288 100644 --- a/nova/api/openstack/compute/contrib/aggregates.py +++ b/nova/api/openstack/compute/contrib/aggregates.py @@ -54,7 +54,7 @@ class AggregateController(object): return {'aggregates': aggregates} def create(self, req, body): - """Creates an aggregate, given its name and availablity_zone.""" + """Creates an aggregate, given its name and availability_zone.""" context = _get_context(req) authorize(context) @@ -90,7 +90,7 @@ class AggregateController(object): return self._marshall_aggregate(aggregate) def update(self, req, id, body): - """Updates the name and/or availbility_zone of given aggregate.""" + """Updates the name and/or availability_zone of given aggregate.""" context = _get_context(req) authorize(context) @@ -152,8 +152,7 @@ class AggregateController(object): LOG.exception(_("Cannot add host %(host)s in aggregate " "%(id)s") % locals()) raise exc.HTTPNotFound - except (exception.AggregateHostConflict, - exception.AggregateHostExists, + except (exception.AggregateHostExists, exception.InvalidAggregateAction): LOG.exception(_("Cannot add host %(host)s in aggregate " "%(id)s") % locals()) |
