lib/facter/framework/config/config_reader.rb in facter-4.0.51 vs lib/facter/framework/config/config_reader.rb in facter-4.0.52
- old
+ new
@@ -43,9 +43,11 @@
def log
@log ||= Log.new(self)
end
def default_path
+ return '' if RUBY_PLATFORM == 'java'
+
os = OsDetector.instance.identifier
windows_path = File.join('C:', 'ProgramData', 'PuppetLabs', 'facter', 'etc', 'facter.conf')
linux_path = File.join('/', 'etc', 'puppetlabs', 'facter', 'facter.conf')