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)
Beispiel #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)
Beispiel #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)
Beispiel #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)