Skip to content

Commit

Permalink
fixing container_name_matches? for unpredictable ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Plunkert committed Jul 9, 2014
1 parent 8d9e330 commit 7d5bd56
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 @@ -151,7 +151,7 @@ def container_image_matches?(image)

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

def container_name_matches_if_exists?(names)
Expand Down

0 comments on commit 7d5bd56

Please sign in to comment.