Skip to content

Commit

Permalink
Fix hostname_match to send proper host object instead of string (thef…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimShtein committed Oct 4, 2023
1 parent ccb6959 commit 4b49578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman_inventory_upload/generators/fact_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def hostname_match
bash_hostname = `uname -n`.chomp
foreman_hostname = ForemanRhCloud.foreman_host&.name
if bash_hostname == foreman_hostname
fqdn(foreman_hostname)
fqdn(ForemanRhCloud.foreman_host)
elsif Setting[:obfuscate_inventory_hostnames]
obfuscate_fqdn(bash_hostname)
else
Expand Down

0 comments on commit 4b49578

Please sign in to comment.