prevent calls on nil
This commit is contained in:
@ -325,7 +325,7 @@ class DockerClient
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.image_tags
|
def self.image_tags
|
||||||
Docker::Image.all.map { |image| image.info['RepoTags'] }.flatten.reject { |tag| tag.include?('<none>') }
|
Docker::Image.all.map { |image| image.info['RepoTags'] }.flatten.reject { |tag| tag.present? && tag.include?('<none>') }
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(options = {})
|
def initialize(options = {})
|
||||||
|
Reference in New Issue
Block a user