Skip to content

Commit

Permalink
Fixes #31364 - Properly import facts when unattended == false
Browse files Browse the repository at this point in the history
The fact importer calls host.without_orchestration which is defined in
orchestration concern, however the concern is only included when
unattended == true. Users who have the setting set to false will not be
able to import facts as the fact importer will fail to find this method.
  • Loading branch information
tbrisker authored and ezr-ondrej committed Nov 29, 2020
1 parent bb4633b commit 2083131
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/host/managed.rb
Expand Up @@ -341,6 +341,10 @@ def compute?
def compute_provides?(attr)
false
end

def without_orchestration
yield
end
end

before_validation :set_hostgroup_defaults, :set_ip_address
Expand Down

0 comments on commit 2083131

Please sign in to comment.