diff options
author | James Turnbull <james@lovedthanlost.net> | 2009-02-04 11:40:34 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-02-04 11:40:34 +1100 |
commit | 063e4dc53ba86dc4a933462082dc30cd0987599a (patch) | |
tree | d453f1127bbc5e3b30497692ff6689028910ac9f /lib/facter.rb | |
parent | b85ab0a894f84b6c2211c42898b5b2f127ccb930 (diff) | |
download | facter-063e4dc53ba86dc4a933462082dc30cd0987599a.tar.gz facter-063e4dc53ba86dc4a933462082dc30cd0987599a.tar.xz facter-063e4dc53ba86dc4a933462082dc30cd0987599a.zip |
Fixed #1850 - Facter updates for Ruby 1.9
Diffstat (limited to 'lib/facter.rb')
-rw-r--r-- | lib/facter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/facter.rb b/lib/facter.rb index 18e43c1..c147673 100644 --- a/lib/facter.rb +++ b/lib/facter.rb @@ -151,15 +151,15 @@ module Facter def self.debugging(bit) if bit case bit - when TrueClass: @@debug = 1 - when FalseClass: @@debug = 0 - when Fixnum: + when TrueClass; @@debug = 1 + when FalseClass; @@debug = 0 + when Fixnum if bit > 0 @@debug = 1 else @@debug = 0 end - when String: + when String; if bit.downcase == 'off' @@debug = 0 else |