Skip to content

Commit

Permalink
Merge pull request #19892 from bdunne/api_require
Browse files Browse the repository at this point in the history
The api calls exec_api_call directly from Api::Mixins::CentralAdmin
  • Loading branch information
jrafanie authored Feb 28, 2020
2 parents b3996f3 + 975e90a commit c8938e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/mixins/inter_region_api_method_relay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def self.api_client_connection_for_region(region_number, user = User.current_use
end

def self.exec_api_call(region, collection_name, action, api_args = nil, id = nil)
require 'manageiq-api-client'
api_args ||= {}
collection = api_client_connection_for_region(region).public_send(collection_name)
collection_or_instance = id ? collection.find(id) : collection
Expand Down

0 comments on commit c8938e4

Please sign in to comment.