Skip to content

Commit

Permalink
Merge pull request #1 from bryantraywick/bryantraywick-facter2-compat…
Browse files Browse the repository at this point in the history
…ibility

Facter 2 compatibility.
  • Loading branch information
bryantraywick committed Jun 24, 2015
2 parents 2580032 + 2bce44b commit 970243c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/heartbeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def haresources

def ucast_ip
opposite_node = configuration[:heartbeat][:nodes].find do |hostname, ip|
!hostname.to_s.match(Facter.fqdn)
!hostname.to_s.match(Facter.value(:fqdn))
end
opposite_node.last
end
Expand All @@ -56,4 +56,4 @@ def ha_config_boolean(key, default = true)
end
end

end
end

0 comments on commit 970243c

Please sign in to comment.