[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.5-303-gfcfa26a

Daniel Pittman daniel at rimspace.net
Thu Mar 17 10:46:57 UTC 2011


The following commit has been merged in the upstream branch:
commit a7cebf80abc9e8b1b570ce7fd2e7b86cf1dd15b3
Author: Daniel Pittman <daniel at rimspace.net>
Date:   Thu Feb 17 18:18:44 2011 -0800

    (#6337) Fix Ruby warning on 1.8.6 about "future compatibility"
    
    Ruby 1.8.6 (but not later versions) warn about requiring parenthesis on some
    function calls; having one of those in our network rights checking means that
    we emit ... quite a few of these, and annoy anything that tracks our logs.
    
    By using the more standard form of raise we can avoid the warning entirely,
    and keep consistent code style across the file.
    
    Reviewed-By: Paul Berry <paul at puppetlabs.com>

diff --git a/lib/puppet/network/rights.rb b/lib/puppet/network/rights.rb
index 00ee04f..b1daef6 100755
--- a/lib/puppet/network/rights.rb
+++ b/lib/puppet/network/rights.rb
@@ -88,7 +88,7 @@ class Rights
     else
       # there were no rights allowing/denying name
       # if name is not a path, let's throw
-      raise ArgumentError.new "Unknown namespace right '#{name}'"
+      raise ArgumentError, "Unknown namespace right '#{name}'"
     end
     error
   end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list