Przeglądaj źródła

Fix ace e2e tests : also use context store with config dir when registering aci backend

Guillaume Tardif 5 lat temu
rodzic
commit
186289b75f
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 4
      azure/backend.go

+ 1 - 4
azure/backend.go

@@ -43,10 +43,7 @@ func getter() interface{} {
 // New creates a backend that can manage containers
 func New(ctx context.Context) (backend.Service, error) {
 	currentContext := apicontext.CurrentContext(ctx)
-	contextStore, err := store.New()
-	if err != nil {
-		return nil, err
-	}
+	contextStore := store.ContextStore(ctx)
 	metadata, err := contextStore.Get(currentContext, getter)
 	if err != nil {
 		return nil, errors.Wrap(err, "wrong context type")