lib/lux/docker_tasks.rb in lux-1.1.1 vs lib/lux/docker_tasks.rb in lux-1.1.2

- old
+ new

@@ -80,10 +80,10 @@ @containername, sep, @imagename = task_name.partition('@') raise "Task #{task_name} must be name@image" if @containername.empty? or @imagename.empty? unless DISABLED @container = Docker::Container.get(@containername) rescue nil @imagename += ':latest' unless @imagename.index(':') - @image = Docker::Image.all.select{|i| i.info['RepoTags'].include? @imagename}.first + @image = Docker::Image.all.select{|i| i.info['RepoTags']&.include? @imagename}.first end end def needed? return false if DISABLED