Fixed rejection of untagged images

This commit is contained in:
Tom Staubitz
2017-01-18 11:10:34 +01:00
parent d8fa661c90
commit 4674c057a4

View File

@ -325,7 +325,7 @@ class DockerClient
end
def self.image_tags
Docker::Image.all.map { |image| image.info['RepoTags'] }.flatten.reject { |tag| tag.present? && tag.include?('<none>') }
Docker::Image.all.map { |image| image.info['RepoTags'] }.flatten.reject { |tag| tag.nil? || tag.include?('<none>') }
end
def initialize(options = {})