Skip to content

Commit

Permalink
Fixes #31980 - Ansible can submit ConfigReport's too
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominique Quatravaux authored and ezr-ondrej committed Mar 2, 2021
1 parent 7d78261 commit 1b90f87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/services/foreman_ansible/ansible_report_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ def host
partial_hostname_match(hostname)
end

def self.authorized_smart_proxy_features
super + ['Ansible']
end

def partial_hostname_match(hostname)
return @host unless @host.new_record?
hosts = Host.where(Host.arel_table[:name].matches("#{hostname}.%"))
Expand Down

0 comments on commit 1b90f87

Please sign in to comment.