class Aviator::Openstack::Provider::MultipleServiceApisError
Public Class Methods
new(service, entries, request_name)
click to toggle source
Calls superclass method
# File lib/aviator/openstack/provider.rb, line 62 def initialize(service, entries, request_name) types = entries.map{|e| e[:type] }.join("\n - ") msg = <<EOF Multiple entries for the #{ service } service were found in the api catalog: - #{ types } I'm unable to guess which one it is you want to use. To fix this problem, you'll need to do one of two things: 1) Indicate in the config file the api version you want to use: production: provider: openstack ... #{ service }_service: api_version: v2 2) Indicate the api version when you call the request: session.#{ service }_service.request :#{ request_name }, :api_version => :v2 { ... } If you combine the two methods, method #2 will override method #1 EOF super(msg) end