Skip to content

Commit

Permalink
Merge pull request #43 from jayofdoom/jay/CleanupLog
Browse files Browse the repository at this point in the history
fix(whitespace): squeeze before printing log
  • Loading branch information
bflad committed Jan 3, 2014
2 parents b048c0a + de097a4 commit 1f473c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def load_current_resource
dps.stdout.each_line do |dps_line|
next unless dps_line.include?(new_resource.image)
next if new_resource.command && !dps_line.include?(new_resource.command)
Chef::Log.debug('Matched docker container: ' + dps_line)
Chef::Log.debug('Matched docker container: ' + dps_line.squeeze(' '))
ps = dps_line.split(/\s\s+/)
name = ps[6] || ps[5]
@current_resource.container_name(name)
Expand Down

0 comments on commit 1f473c7

Please sign in to comment.