Merge "Remove bay reference from zun/objects/container.py"

This commit is contained in:
Jenkins 2016-09-02 03:29:10 +00:00 committed by Gerrit Code Review
commit 0b1c98614e

View File

@ -90,9 +90,9 @@ class Container(base.ZunPersistentObject, base.ZunObject,
:param context: Security context
:returns: a :class:`Container` object.
"""
db_bay = cls.dbapi.get_container_by_name(context, name)
bay = Container._from_db_object(cls(context), db_bay)
return bay
db_container = cls.dbapi.get_container_by_name(context, name)
container = Container._from_db_object(cls(context), db_container)
return container
@base.remotable_classmethod
def list(cls, context, limit=None, marker=None,