summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG3
-rwxr-xr-xlib/puppet/provider/package/openbsd.rb2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 657bac6d6..43103252f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+ Applying patch by Ryan McBride to fix OpenBSD package
+ matching. The actual problem was caused by the fix to #1001.
+
Found all instances of methods where split() is used without
any local variables and added a local variable -- see
http://snurl.com/21zf8. My own testing showed that this
diff --git a/lib/puppet/provider/package/openbsd.rb b/lib/puppet/provider/package/openbsd.rb
index f76c37176..6c2e0895b 100755
--- a/lib/puppet/provider/package/openbsd.rb
+++ b/lib/puppet/provider/package/openbsd.rb
@@ -67,7 +67,7 @@ Puppet::Type.type(:package).provide :openbsd, :parent => Puppet::Provider::Packa
# Search for the version info
if info =~ /Information for (inst:)?#{@resource[:name]}-(\S+)/
- hash[:ensure] = $1
+ hash[:ensure] = $2
else
return nil
end