diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-01-26 08:49:13 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-01-26 10:46:13 -0800 |
commit | 076dea67488fd5b8dfdc4761b92e80e4a4041fc1 (patch) | |
tree | 2d3a82280e97e1c04be31395826e88e3a4e7e58a /lib/chef | |
parent | f27f8f1781695d557b71298d483d440439671936 (diff) | |
download | chef-076dea67488fd5b8dfdc4761b92e80e4a4041fc1.tar.gz |
Fix an interpolation mistake in an error message + turn on the copinterpolation
Make sure we avoid these in the future. We should probably turn this on in Chefstyle.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef')
-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 7785dc3990..8ca6249a9d 100644 --- a/lib/chef/util/dsc/configuration_generator.rb +++ b/lib/chef/util/dsc/configuration_generator.rb @@ -106,7 +106,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 |