mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
Store context type in metadata to make retrocompatibility with previous contexts easier (potentially switching back and forth)
This commit is contained in:
parent
8930563a25
commit
e7682682fb
8 changed files with 147 additions and 48 deletions
|
|
@ -49,13 +49,13 @@ func New(ctx context.Context) (*Client, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
service, err := backend.Get(ctx, cc.Type)
|
||||
service, err := backend.Get(ctx, cc.Type())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &Client{
|
||||
backendType: cc.Type,
|
||||
backendType: cc.Type(),
|
||||
bs: service,
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue