def get_by_instance_uuid(cls, context, instance_uuid):
     db_group = None
     try:
         db_group = cls._get_from_db_by_instance(context, instance_uuid)
     except exception.InstanceGroupNotFound:
         pass
     if db_group is None:
         db_group = db.instance_group_get_by_instance(
             context, instance_uuid)
     return cls._from_db_object(context, cls(), db_group)
Exemplo n.º 2
0
 def get_by_instance_uuid(cls, context, instance_uuid):
     db_group = None
     try:
         db_group = cls._get_from_db_by_instance(context, instance_uuid)
     except exception.InstanceGroupNotFound:
         pass
     if db_group is None:
         db_group = db.instance_group_get_by_instance(context,
                                                      instance_uuid)
     return cls._from_db_object(context, cls(), db_group)
Exemplo n.º 3
0
 def get_by_instance_uuid(cls, context, instance_uuid):
     db_inst = db.instance_group_get_by_instance(context, instance_uuid)
     return cls._from_db_object(context, cls(), db_inst)
Exemplo n.º 4
0
 def get_by_instance_uuid(cls, context, instance_uuid):
     db_inst = db.instance_group_get_by_instance(context, instance_uuid)
     return cls._from_db_object(context, cls(), db_inst)