summaryrefslogtreecommitdiffstats
path: root/lib/facter/util/virtual.rb
diff options
context:
space:
mode:
authorMatt <matt.cashdollar@orbitz.com>2011-03-05 15:34:04 -0600
committerMatt <matt.cashdollar@orbitz.com>2011-03-05 15:34:04 -0600
commit84fa3c440edefd117ce8a7fa5fb13d76b66ec7db (patch)
tree318799704a9f146a8a7ea995c088bfcab6e4377b /lib/facter/util/virtual.rb
parenteb5d6fca87990a7c1cd0442b70da3792059fe6dd (diff)
downloadfacter-84fa3c440edefd117ce8a7fa5fb13d76b66ec7db.tar.gz
facter-84fa3c440edefd117ce8a7fa5fb13d76b66ec7db.tar.xz
facter-84fa3c440edefd117ce8a7fa5fb13d76b66ec7db.zip
(#6525) change semicolons to 'then' in case statement for ruby 1.9.2 compatibility
Diffstat (limited to 'lib/facter/util/virtual.rb')
-rw-r--r--lib/facter/util/virtual.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter/util/virtual.rb b/lib/facter/util/virtual.rb
index 129448e..06b1b6d 100644
--- a/lib/facter/util/virtual.rb
+++ b/lib/facter/util/virtual.rb
@@ -60,8 +60,8 @@ module Facter::Util::Virtual
def self.jail?
path = case Facter.value(:kernel)
- when "FreeBSD": "/sbin"
- when "GNU/kFreeBSD": "/bin"
+ when "FreeBSD" then "/sbin"
+ when "GNU/kFreeBSD" then "/bin"
end
Facter::Util::Resolution.exec("#{path}/sysctl -n security.jail.jailed") == "1"
end