diff options
author | varac <varacanero@zeromail.org> | 2015-12-07 14:27:04 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-12-07 14:27:04 +0100 |
commit | a70c52c1d4f399c22fa6c71289031350a1da44b5 (patch) | |
tree | 3a0b90f82aea8f1ee512f2395db0261d2bf5db83 /lib/facter/debian_lts.rb | |
parent | 6b27efb4346e61280f041b63dd8df7ad1f2e7f81 (diff) | |
download | puppet-apt-a70c52c1d4f399c22fa6c71289031350a1da44b5.tar.gz puppet-apt-a70c52c1d4f399c22fa6c71289031350a1da44b5.tar.bz2 |
Fix loading of util/debian.rb for custom facts
requirering the facter/util/debian.rb module causes
puppet warnings on wheezy hosts, and custom facts like
`$::debian_codename` cannot be evaluated.
warning: Could not load fact file
/srv/dev/projects/puppet/shared-modules//apt/lib/facter/debian_nextcodename.rb:
no such file to load -- facter/util/debian
Removing the require line solves this.
Diffstat (limited to 'lib/facter/debian_lts.rb')
-rw-r--r-- | lib/facter/debian_lts.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/facter/debian_lts.rb b/lib/facter/debian_lts.rb index 1c137e1..f53a9eb 100644 --- a/lib/facter/debian_lts.rb +++ b/lib/facter/debian_lts.rb @@ -1,5 +1,7 @@ begin require 'facter/util/debian' +rescue LoadError + require "#{File.dirname(__FILE__)}/util/debian" end Facter.add(:debian_lts) do |