summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-10-18 12:38:17 -0700
committerGitHub <noreply@github.com>2017-10-18 12:38:17 -0700
commitd68c2244fe5aacc5d9992b4d35e45220713c4032 (patch)
tree77ba5cc9c054bb8da1312210dc9aaa28a8e10b3a
parentf7f22101e73459b8ce21a92b47dedfae4f256309 (diff)
parent105bc48349973ab966aa82d25262434030e13ed7 (diff)
downloadchef-d68c2244fe5aacc5d9992b4d35e45220713c4032.tar.gz
Merge pull request #6508 from chef/unbreak_12
Don't use the safe navigation operator which requires Ruby 2.3
-rw-r--r--lib/chef/util/dsc/lcm_output_parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/util/dsc/lcm_output_parser.rb b/lib/chef/util/dsc/lcm_output_parser.rb
index f19f637b6d..9fc12fad74 100644
--- a/lib/chef/util/dsc/lcm_output_parser.rb
+++ b/lib/chef/util/dsc/lcm_output_parser.rb
@@ -85,7 +85,7 @@ class Chef
resources = []
lcm_output.lines.each do |line|
op_action , op_value = line.strip.split(":")
- op_action&.strip!
+ op_action && op_action.strip!
case op_action
when "InDesiredState"
current_resource[:skipped] = op_value.strip == "True" ? true : false