diff options
author | Daniel Pittman <daniel@rimspace.net> | 2011-02-17 18:18:44 -0800 |
---|---|---|
committer | Paul Berry <paul@puppetlabs.com> | 2011-02-21 14:08:37 -0800 |
commit | b4813213afbe085b63317fbc2d1e37f799d21dd4 (patch) | |
tree | 4466c43493bfaebe51c0cbafa450fefc6e3004bd | |
parent | cb4011561f1bf096daa56b9ce48e6d91b70e0188 (diff) | |
download | puppet-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-x | lib/puppet/network/rights.rb | 2 |
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 |