in gstack/controllers/__init__.py [0:0]
def get_item_with_name_or_error(authorization, name, args, type, func_route, to_cloudstack, **kwargs):
cloudstack_item = get_item_with_name(authorization, name, args, type)
if cloudstack_item:
return helpers.create_response(to_cloudstack(
cloudstack_response=cloudstack_item, **kwargs
))
else:
return errors.resource_not_found(func_route)