summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-02-17 18:18:44 -0800
committerPaul Berry <paul@puppetlabs.com>2011-02-21 14:08:37 -0800
commitb4813213afbe085b63317fbc2d1e37f799d21dd4 (patch)
tree4466c43493bfaebe51c0cbafa450fefc6e3004bd
parentcb4011561f1bf096daa56b9ce48e6d91b70e0188 (diff)
downloadpuppet-b4813213afbe085b63317fbc2d1e37f799d21dd4.tar.gz
puppet-b4813213afbe085b63317fbc2d1e37f799d21dd4.tar.xz
puppet-b4813213afbe085b63317fbc2d1e37f799d21dd4.zip
(#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@puppetlabs.com>
-rwxr-xr-xlib/puppet/network/rights.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/network/rights.rb b/lib/puppet/network/rights.rb
index 00ee04f8d..b1daef67c 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