diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-01-26 08:49:13 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-03-25 10:58:29 -0700 |
commit | ebbc62b44d518f17fbfb75583d9522200db61e0d (patch) | |
tree | 881684c83d6cb56ea8bac1993870f8df1490e553 | |
parent | 996bae1260d730415424eb13d74ee67f1e0b89ef (diff) | |
download | chef-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.rb | 2 |
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 |