summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-01-26 08:49:13 -0800
committerTim Smith <tsmith84@gmail.com>2021-03-25 10:58:29 -0700
commitebbc62b44d518f17fbfb75583d9522200db61e0d (patch)
tree881684c83d6cb56ea8bac1993870f8df1490e553
parent996bae1260d730415424eb13d74ee67f1e0b89ef (diff)
downloadchef-ebbc62b44d518f17fbfb75583d9522200db61e0d.tar.gz
Fix an interpolation mistake in an error message + turn on the cop
Make sure we avoid these in the future. We should probably turn this on in Chefstyle. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/util/dsc/configuration_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/util/dsc/configuration_generator.rb b/lib/chef/util/dsc/configuration_generator.rb
index 479e96dfa2..dfb7cab3a4 100644
--- a/lib/chef/util/dsc/configuration_generator.rb
+++ b/lib/chef/util/dsc/configuration_generator.rb
@@ -64,7 +64,7 @@ class Chef::Util::DSC
# The name may not be null or empty, and should start with a letter.
def validate_configuration_name!(configuration_name)
if !!(configuration_name =~ /\A[A-Za-z]+[_a-zA-Z0-9]*\Z/) == false
- raise ArgumentError, 'Configuration `#{configuration_name}` is not a valid PowerShell cmdlet name'
+ raise ArgumentError, "Configuration `#{configuration_name}` is not a valid PowerShell cmdlet name"
end
end