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
75608dce5c
commit
40055ef01b
|
@ -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 New Issue