summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-02-17 18:18:44 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-02-17 18:18:44 -0800
commita7cebf80abc9e8b1b570ce7fd2e7b86cf1dd15b3 (patch)
tree53fe3b739d2775a2c5b8f0b4a45cb88296161cb0 /lib
parent6d5f1aa75c8c64033b56f49e87fc03258d5c158c (diff)
downloadpuppet-a7cebf80abc9e8b1b570ce7fd2e7b86cf1dd15b3.tar.gz
puppet-a7cebf80abc9e8b1b570ce7fd2e7b86cf1dd15b3.tar.xz
puppet-a7cebf80abc9e8b1b570ce7fd2e7b86cf1dd15b3.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>
Diffstat (limited to 'lib')
-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