summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-05 21:58:18 -0800
committerTim Smith <tsmith@chef.io>2017-12-05 21:58:18 -0800
commit3a84ad116fc7f7c1d3f60c6c82e2f8bd9616a652 (patch)
tree9fd85ce57c8bb5731fbd11573651323bd676c73c
parent3f88bacdce38d619c45fb264aa50856b15d802f2 (diff)
downloadchef-3a84ad116fc7f7c1d3f60c6c82e2f8bd9616a652.tar.gz
Fix typos that prevented logging
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/windows_task.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb
index 2aad02564c..4683a23264 100644
--- a/lib/chef/provider/windows_task.rb
+++ b/lib/chef/provider/windows_task.rb
@@ -328,12 +328,12 @@ class Chef
end
options.each do |option|
- Chef::Log.debug 'Removing former #{option} if any'
+ Chef::Log.debug "Removing former #{option} if any"
doc.root.elements.delete(xml_element_mapping[option])
option_value = new_resource.send("#{option}")
if option_value
- Chef::Log.debug "Setting #option as #option_value"
+ Chef::Log.debug "Setting #{option} as #{option_value}"
split_xml_path = xml_element_mapping[option].split("/") # eg. if xml_element_mapping[option] = "Actions/Exec/WorkingDirectory"
element_name = split_xml_path.last # element_name = "WorkingDirectory"
cwd_element = REXML::Element.new(element_name)