From 80ee25d8176f6971a0dd2b5a5daff7775cfad5ac Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Thu, 12 Jul 2018 07:16:53 +0200 Subject: [PATCH] fix(api): fix an issue with snapshots and agent endpoints --- api/cmd/portainer/main.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/cmd/portainer/main.go b/api/cmd/portainer/main.go index f2acf6615..b1a41e8a1 100644 --- a/api/cmd/portainer/main.go +++ b/api/cmd/portainer/main.go @@ -376,13 +376,18 @@ func main() { jwtService := initJWTService(!*flags.NoAuth) + ldapService := initLDAPService() + + gitService := initGitService() + cryptoService := initCryptoService() digitalSignatureService := initDigitalSignatureService() - ldapService := initLDAPService() - - gitService := initGitService() + err := initKeyPair(fileService, digitalSignatureService) + if err != nil { + log.Fatal(err) + } clientFactory := initClientFactory(digitalSignatureService) @@ -398,11 +403,6 @@ func main() { endpointManagement = false } - err = initKeyPair(fileService, digitalSignatureService) - if err != nil { - log.Fatal(err) - } - swarmStackManager, err := initSwarmStackManager(*flags.Assets, *flags.Data, digitalSignatureService, fileService) if err != nil { log.Fatal(err)