diff options
Diffstat (limited to 'lib/chef/mixin/securable.rb')
-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 9da8ae4c2f..92e07e4e0f 100644 --- a/lib/chef/mixin/securable.rb +++ b/lib/chef/mixin/securable.rb @@ -134,7 +134,7 @@ class Chef end [ principals ].flatten.each do |principal| - if !principal.is_a?(String) + unless principal.is_a?(String) raise ArgumentError, "principals parameter must be a string or array of strings representing usernames" end end |