diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-02-03 15:44:39 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-02-03 15:44:39 -0800 |
commit | a9fe893febadf58e570cdddba77f8c5a030d5cd6 (patch) | |
tree | 83a4e254d1b06caace51b7acb4f89373f3ea6865 /lib/chef/compliance | |
parent | 8482b2f5df0333b2551dcc844ccac198838012d6 (diff) | |
download | chef-a9fe893febadf58e570cdddba77f8c5a030d5cd6.tar.gz |
Chefstyle fixes + release notes update
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/compliance')
-rw-r--r-- | lib/chef/compliance/reporter/cli.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/compliance/reporter/cli.rb b/lib/chef/compliance/reporter/cli.rb index e8bcee46c4..4905c1f653 100644 --- a/lib/chef/compliance/reporter/cli.rb +++ b/lib/chef/compliance/reporter/cli.rb @@ -12,7 +12,7 @@ class Chef profile[:controls].each do |control| next if control[:results].nil? - output << "#{' ' * 6}#{control[:title]}" + output << "#{" " * 6}#{control[:title]}" control[:results].each do |result| output << format_result(result) end @@ -38,31 +38,31 @@ class Chef if result[:status] == "failed" if result[:code_desc] found = true - output << pastel.red("#{' ' * 9}- #{result[:code_desc]}") + output << pastel.red("#{" " * 9}- #{result[:code_desc]}") end if result[:message] if found result[:message].split(/\n/).reject(&:empty?).each do |m| - output << pastel.red("#{' ' * 12}#{m}") + output << pastel.red("#{" " * 12}#{m}") end else result[:message].split(/\n/).reject(&:empty?).each do |m| - output << pastel.red("#{' ' * 9}#{m}") + output << pastel.red("#{" " * 9}#{m}") end end found = true end unless found - output << pastel.red("#{' ' * 9}- #{result[:status]}") + output << pastel.red("#{" " * 9}- #{result[:status]}") end else found = false if result[:code_desc] found = true - output << pastel.green("#{' ' * 9}+ #{result[:code_desc]}") + output << pastel.green("#{" " * 9}+ #{result[:code_desc]}") end unless found - output << pastel.green("#{' ' * 9}+ #{result[:status]}") + output << pastel.green("#{" " * 9}+ #{result[:status]}") end end output |