cmd: prevent outposts from panicking when failing to get their config
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
e8420957b1
commit
5f4a1417b2
|
@ -45,6 +45,9 @@ func main() {
|
||||||
defer common.Defer()
|
defer common.Defer()
|
||||||
|
|
||||||
ac := ak.NewAPIController(*akURLActual, akToken)
|
ac := ak.NewAPIController(*akURLActual, akToken)
|
||||||
|
if ac == nil {
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
ac.Server = ldap.NewServer(ac)
|
ac.Server = ldap.NewServer(ac)
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,9 @@ func main() {
|
||||||
defer common.Defer()
|
defer common.Defer()
|
||||||
|
|
||||||
ac := ak.NewAPIController(*akURLActual, akToken)
|
ac := ak.NewAPIController(*akURLActual, akToken)
|
||||||
|
if ac == nil {
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
ac.Server = proxyv2.NewProxyServer(ac, portOffset)
|
ac.Server = proxyv2.NewProxyServer(ac, portOffset)
|
||||||
|
|
||||||
|
|
Reference in a new issue