Commit ba901431 authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas

Revert "cyclades: Fix flavor allow_create in change flavor"

This reverts commit fb4e411e.

The commit breaks the intended usage of allow_create without
addressing it otherwise.
parent fb4e411e
......@@ -41,7 +41,6 @@ Cyclades
* Imporove SynnefoExceptionReporterFilter to better cleanse request body.
* Make eventd detect Ganeti Master failovers and allow having multiple eventd
instances running in the Ganeti cluster.
* Fix flavor allow_create not enforced in server resize/change flavor
Admin
-----
......
......@@ -1026,10 +1026,6 @@ def resize(request, vm, args):
if flavor_id is None:
raise faults.BadRequest("Missing 'flavorRef' attribute.")
flavor = util.get_flavor(flavor_id=flavor_id, include_deleted=False)
if not util.can_create_flavor(flavor, request.user):
msg = ("It is not allowed to resize a server to flavor with id '%d',"
" see 'allow_create' flavor attribute")
raise faults.Forbidden(msg % flavor.id)
servers.resize(vm, flavor=flavor)
log.info("User %s resized VM %s to flavor %s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment