mirror of
https://github.com/docker/compose.git
synced 2026-08-27 03:45:29 +00:00
Fix Azure login : allow getting a backend when no corresponding context already exists with an explicit call from the login command. Will be usefull next for context creation with azure interactive things
This commit is contained in:
parent
832651b1dc
commit
01aaec2dbe
8 changed files with 84 additions and 62 deletions
|
|
@ -26,14 +26,12 @@ func (a *apiService) ComposeService() compose.Service {
|
|||
return &a.composeService
|
||||
}
|
||||
|
||||
func (a *apiService) CloudService() cloud.Service {
|
||||
return nil
|
||||
func init() {
|
||||
backend.Register("example", "example", service, cloud.NotImplementedCloudService)
|
||||
}
|
||||
|
||||
func init() {
|
||||
backend.Register("example", "example", func(ctx context.Context) (backend.Service, error) {
|
||||
return &apiService{}, nil
|
||||
})
|
||||
func service(ctx context.Context) (backend.Service, error) {
|
||||
return &apiService{}, nil
|
||||
}
|
||||
|
||||
type containerService struct{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue