Skip to content

Commit

Permalink
Fixed container name matching for containers with multiple names.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperville committed Aug 29, 2014
1 parent d5786b7 commit acc8296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ def container_image_matches?(image)

def container_name_matches?(names)
return false unless names
new_resource.container_name && new_resource.container_name == names
new_resource.container_name && names.split(',').include?(new_resource.container_name)
end

def container_name_matches_if_exists?(names)
return false if new_resource.container_name && new_resource.container_name != names
return container_name_matches?(names) if new_resource.container_name
true
end

Expand Down

0 comments on commit acc8296

Please sign in to comment.