summaryrefslogtreecommitdiff
path: root/lib/chef/util/dsc/lcm_output_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/util/dsc/lcm_output_parser.rb')
-rw-r--r--lib/chef/util/dsc/lcm_output_parser.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/chef/util/dsc/lcm_output_parser.rb b/lib/chef/util/dsc/lcm_output_parser.rb
index 8f62a27c8a..57fe0a760a 100644
--- a/lib/chef/util/dsc/lcm_output_parser.rb
+++ b/lib/chef/util/dsc/lcm_output_parser.rb
@@ -73,7 +73,7 @@ class Chef
if current_resource[:name]
resources.push(current_resource)
end
- current_resource = {:name => info}
+ current_resource = { :name => info }
else
Chef::Log.debug("Ignoring op_action #{op_action}: Read line #{line}")
end
@@ -108,8 +108,8 @@ class Chef
# If the line looks like
# What If: [machinename]: LCM: [op_action op_type] message
# extract op_action, op_type, and message
- operation, info = match.captures
- op_action, op_type = operation.strip.split(" ").map {|m| m.downcase.to_sym}
+ operation, info = match.captures
+ op_action, op_type = operation.strip.split(" ").map { |m| m.downcase.to_sym }
else
op_action = op_type = :info
if match = line.match(/^.*?:.*?: \s+(.*)/)
@@ -129,7 +129,6 @@ class Chef
end
end
private_class_method :build_resource_info
-
end
end
end