diff --git a/app/controllers/api/base_controller/parser.rb b/app/controllers/api/base_controller/parser.rb index 5d3eca2070..6c0346b735 100644 --- a/app/controllers/api/base_controller/parser.rb +++ b/app/controllers/api/base_controller/parser.rb @@ -126,18 +126,6 @@ def parse_tenant(resource) parse_id(resource, :tenants) unless resource.blank? end - def fetch_provider(data) - provider_id = parse_id(data, :providers) - raise BadRequestError, 'Missing Provider identifier href or id' if provider_id.nil? - resource_search(provider_id, :providers, collection_class(:providers)) - end - - def fetch_availability_zone(data) - availability_zone_id = parse_id(data, :availability_zones) - raise BadRequestError, 'Missing availability zone identifier href or id' if availability_zone_id.nil? - resource_search(availability_zone_id, :availability_zones, collection_class(:availability_zones)) - end - def parse_ownership(data) { :owner => collection_class(:users).find_by(:id => parse_owner(data["owner"])),