You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
346 B
14 lines
346 B
class DashboardController < ApplicationController
|
|
def index
|
|
@hosts = Host.all
|
|
|
|
@hosts.map { |host|
|
|
if host.lxd_config.auth == 'untrusted'
|
|
session[:return_to] = request.env["REQUEST_URI"]
|
|
redirect_to controller: 'hosts', action: 'auth', id: host.id
|
|
return
|
|
end
|
|
}
|
|
end
|
|
end
|
|
# vim: set et ts=2 sw=2:
|