mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
fix: correct typo in isSwarmEnabled method name
Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com>
This commit is contained in:
committed by
Nicolas De loof
parent
4520bcbaf6
commit
d7a65f53f8
@@ -478,7 +478,7 @@ var swarmEnabled = struct {
|
||||
err error
|
||||
}{}
|
||||
|
||||
func (s *composeService) isSWarmEnabled(ctx context.Context) (bool, error) {
|
||||
func (s *composeService) isSwarmEnabled(ctx context.Context) (bool, error) {
|
||||
swarmEnabled.once.Do(func() {
|
||||
info, err := s.apiClient().Info(ctx)
|
||||
if err != nil {
|
||||
|
||||
@@ -1524,7 +1524,7 @@ func (s *composeService) resolveExternalNetwork(ctx context.Context, n *types.Ne
|
||||
case 1:
|
||||
return networks[0].ID, nil
|
||||
case 0:
|
||||
enabled, err := s.isSWarmEnabled(ctx)
|
||||
enabled, err := s.isSwarmEnabled(ctx)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user