Skip to content

Commit 4993e4f

Browse files
author
Travis Fields
committed
FM-2130 Move cache file to non temp directory
1 parent 413dafb commit 4993e4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/facter/facter_dot_d.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class Facter::Util::DotD
1616
require 'yaml'
1717

18-
def initialize(dir="/etc/facts.d", cache_file="/tmp/facts_cache.yml")
18+
def initialize(dir="/etc/facts.d", cache_file="#{Puppet[:libdir]}facts.cache")
1919
@dir = dir
2020
@cache_file = cache_file
2121
@cache = nil

0 commit comments

Comments
 (0)