Skip to content

Commit

Permalink
More PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Brushett committed Sep 10, 2019
1 parent beaa150 commit 1b310da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kubernetes-deploy/deploy_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ def validate_resources(resources)
r.validate_definition(kubectl, selector: @selector)
end

resources.select(&:has_warnings?).each do |r|
record_warnings(warning: r.validation_warning_msg, filename: File.basename(r.file_path))
resources.select(&:has_warnings?).each do |resource|
record_warnings(warning: resource.validation_warning_msg, filename: File.basename(resource.file_path))
end

failed_resources = resources.select(&:validation_failed?)
Expand Down

0 comments on commit 1b310da

Please sign in to comment.