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

This commit is contained in:
Guillaume Tardif 2020-05-20 17:15:56 +02:00
parent 57404a2663
commit 186289b75f
1 changed files with 1 additions and 4 deletions

View File

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