diff options
-rw-r--r-- | CHANGELOG | 3 | ||||
-rwxr-xr-x | lib/puppet/provider/package/openbsd.rb | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 |