fix: correct typo in isSwarmEnabled method name

Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com>
This commit is contained in:
hiroto.toyoda
2025-12-28 01:26:36 +09:00
committed by Nicolas De loof
parent 4520bcbaf6
commit d7a65f53f8
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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
}