diff options
-rw-r--r-- | lib/facter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/facter.rb b/lib/facter.rb index ac06f68..46e2e99 100644 --- a/lib/facter.rb +++ b/lib/facter.rb @@ -180,6 +180,7 @@ module Facter def self.warn(msg) if Facter.debugging? and msg and not msg.empty? + msg = [msg] unless msg.respond_to? :each msg.each { |line| Kernel.warn line } end end |