ManageIQ/manageiq-providers-ansible_tower

View on GitHub
app/models/manageiq/providers/ansible_tower/automation_manager/refresher.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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