Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/facter/agent_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
Facter.add('yum_agent6_repo') do
setcode do
yumpath = '/etc/yum.repos.d/datadog6.repo'
File.exist? yumpath or !File.zero? yumpath
File.exist? yumpath and !File.zero? yumpath
end
end

Facter.add('yum_datadog_legacy_repo') do
setcode do
yumpath = '/etc/yum.repos.d/datadog.repo'
File.exist? yumpath or !File.zero? yumpath
File.exist? yumpath and !File.zero? yumpath
end
end