[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, experimental_upstream, updated. 1.5.9-54-g5a4eeed
Matt Robinson
matt at puppetlabs.com
Wed Jun 22 08:51:43 UTC 2011
The following commit has been merged in the experimental_upstream branch:
commit fd4f31c3748d7e59b00473355a12fc232d173eab
Author: Matt Robinson <matt at puppetlabs.com>
Date: Tue Mar 22 21:53:18 2011 -0700
(#6817) Fix for Ruby 1.9 by calling .each_line on a string
diff --git a/lib/facter/util/memory.rb b/lib/facter/util/memory.rb
index b7ad198..d86a423 100644
--- a/lib/facter/util/memory.rb
+++ b/lib/facter/util/memory.rb
@@ -75,7 +75,7 @@ module Facter::Memory
memspecfree = 0
vmstats = Facter::Util::Resolution.exec('vm_stat')
- vmstats.each do |vmline|
+ vmstats.each_line do |vmline|
case
when vmline =~ /page\ssize\sof\s(\d+)\sbytes/
pagesize = $1.to_i
--
Packaging of Facter for debian
More information about the Pkg-puppet-devel
mailing list