Land #10945, Ensure `sessions --up` shows only services which are up
commit
7ee70f5655
|
@ -765,6 +765,10 @@ class Db
|
||||||
opts[:port] = ports if ports
|
opts[:port] = ports if ports
|
||||||
framework.db.services(opts).each do |service|
|
framework.db.services(opts).each do |service|
|
||||||
|
|
||||||
|
unless service.state == 'open'
|
||||||
|
next if onlyup
|
||||||
|
end
|
||||||
|
|
||||||
host = service.host
|
host = service.host
|
||||||
matched_service_ids << service.id
|
matched_service_ids << service.id
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue