app/models/manageiq/providers/ansible_tower/automation_manager/refresher.rb
class ManageIQ::Providers::AnsibleTower::AutomationManager::Refresher < ManageIQ::Providers::BaseManager::Refresher
def collect_inventory_for_targets(ems, targets)
ems.with_provider_connection do |connection|
# FIXME: this should really be somewhere else
ems.api_version = connection.api.version
ems.save
end
super
end
end