Remove usage of BayLocked

The API had an exception that is not being used (BayLocked)
being executed.  The API calling the exception is not used
by the codebase.

Change-Id: Ib4c6ea7f3a7bf82a136e4234c7d618444413b46d
Steven Dake 2015-01-05 07:59:33 -07:00 committed by Jay Lau (Guangya Liu)
parent 05c6a317f2
commit 566658a6d4
1 changed files with 0 additions and 11 deletions

View File

@ -91,17 +91,6 @@ def add_identity_filter(query, value):
raise exception.InvalidIdentity(identity=value)
def _check_port_change_forbidden(port, session):
bay_id = port['bay_id']
if bay_id is not None:
query = model_query(models.Bay, session=session)
query = query.filter_by(id=bay_id)
bay_ref =
if bay_ref['reservation'] is not None:
raise exception.BayLocked(bay=bay_ref['uuid'],
def _paginate_query(model, limit=None, marker=None, sort_key=None,
sort_dir=None, query=None):
if not query: