Example #1
0
def return_instance_type_not_found(flavor_id):
    raise exception.InstanceTypeNotFound(flavor_id=flavor_id)
 def get_instance_type(self, context, flavor_type):
     if flavor_type == 1:
         return flavors.get_default_flavor()
     else:
         raise exception.InstanceTypeNotFound(flavor_type)
Example #3
0
def return_flavor_not_found(flavor_id, ctxt=None):
    raise exception.InstanceTypeNotFound(instance_type_id=flavor_id)