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.
13 lines
350 B
13 lines
350 B
class DashboardController < ApplicationController
|
|
def index
|
|
@lxd_host = LxdHost.find(1)
|
|
@cert = Certificate.find(1)
|
|
@lxd = Lxd::Server.by_host @lxd_host, @cert
|
|
|
|
if @lxd.auth == 'untrusted'
|
|
Lxd::Certificate.new.save(@lxd_host, @cert)
|
|
@lxd = Lxd::Server.by_host @lxd_host, @cert
|
|
end
|
|
end
|
|
end
|
|
# vim: set et ts=2 sw=2:
|