diff options
author | Rein Henrichs <rein@puppetlabs.com> | 2010-08-06 12:13:09 -0700 |
---|---|---|
committer | Rein Henrichs <rein@puppetlabs.com> | 2010-08-06 16:06:33 -0700 |
commit | bff84c2ac73db3880f7004a0defc745fa0b1d37c (patch) | |
tree | 93ad4ba99b3fc63b68fe7b4880f83f6edbf0d16f /lib/facter/util/virtual.rb | |
parent | a2d1a5477f2445bf238dbf4f1f05c54313d8b1d5 (diff) | |
download | facter-bff84c2ac73db3880f7004a0defc745fa0b1d37c.tar.gz facter-bff84c2ac73db3880f7004a0defc745fa0b1d37c.tar.xz facter-bff84c2ac73db3880f7004a0defc745fa0b1d37c.zip |
[#4156] Applying patch by Kai
Patch from the ticket[1] checks for /proc/vz instead of /proc/vz/vzinfo.
NOTE that this causes a spec failure since the spec was not changed to
match.
[1] http://projects.reductivelabs.com/issues/4156
Signed-off-by: Rein Henrichs <rein@puppetlabs.com>
Diffstat (limited to 'lib/facter/util/virtual.rb')
-rw-r--r-- | lib/facter/util/virtual.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/util/virtual.rb b/lib/facter/util/virtual.rb index 2d18c33..5f70d42 100644 --- a/lib/facter/util/virtual.rb +++ b/lib/facter/util/virtual.rb @@ -1,6 +1,6 @@ module Facter::Util::Virtual def self.openvz? - FileTest.exists?("/proc/vz/veinfo") + FileTest.directory?("/proc/vz") end def self.openvz_type |