diff --git a/lib/facter/agent_repo.rb b/lib/facter/agent_repo.rb index 32a07450..ec14eb92 100644 --- a/lib/facter/agent_repo.rb +++ b/lib/facter/agent_repo.rb @@ -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