Skip to content

Commit

Permalink
Merge pull request #613 from Fryguy/pluggable_api_yml
Browse files Browse the repository at this point in the history
Allow api.yml to be pluggable
  • Loading branch information
bdunne authored Jun 27, 2019
2 parents f5ab7bc + 67e8dbc commit aa2d4fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/api/api_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

module Api
ApiConfig = ::Config::Options.new.tap do |o|
o.add_source!(ManageIQ::Api::Engine.root.join("config/api.yml").to_s)
plugins = Vmdb::Plugins.all.dup
plugins.unshift(plugins.delete(ManageIQ::Api::Engine))
plugins.each { |p| o.add_source!(p.root.join("config/api.yml").to_s) }

o.load!
end
end

0 comments on commit aa2d4fe

Please sign in to comment.