diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-12 09:18:16 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-01-12 09:18:16 -0800 |
commit | 812101f11a6c33e49f401ad72598ca6ffb38adc4 (patch) | |
tree | bab654bbd8d6310d46c0f1787691133a2b6bb743 /lib/chef/mixin | |
parent | c7194aea7c145b94c46a97dd3f218aff1b0116c2 (diff) | |
parent | c844e1c87374b18ee634a06a5325518631607c90 (diff) | |
download | chef-812101f11a6c33e49f401ad72598ca6ffb38adc4.tar.gz |
Merge pull request #4381 from chef/lcg/useless-to-s
chefstyle: fix Lint/StringConversionInInterpolation
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/securable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/securable.rb b/lib/chef/mixin/securable.rb index aaedf0b9ba..396243693e 100644 --- a/lib/chef/mixin/securable.rb +++ b/lib/chef/mixin/securable.rb @@ -112,7 +112,7 @@ class Chef # equivalent to something like: # def rights(permissions=nil, principals=nil, args_hash=nil) define_method(name) do |permissions=nil, principals=nil, args_hash=nil| - rights = self.instance_variable_get("@#{name.to_s}".to_sym) + rights = self.instance_variable_get("@#{name}".to_sym) unless permissions.nil? input = { :permissions => permissions, |