Merge pull request #8789 from Mygao/chore/fix-typo

Fix typo: netwok -> network
This commit is contained in:
Ulysses Souza 2021-11-02 10:49:31 +00:00 committed by GitHub
commit f10c96a54a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ func (s *composeService) down(ctx context.Context, projectName string, options a
} }
} }
ops, err := s.ensureNetwoksDown(ctx, projectName) ops, err := s.ensureNetworksDown(ctx, projectName)
if err != nil { if err != nil {
return err return err
} }
@ -129,7 +129,7 @@ func (s *composeService) ensureImagesDown(ctx context.Context, projectName strin
return ops return ops
} }
func (s *composeService) ensureNetwoksDown(ctx context.Context, projectName string) ([]downOp, error) { func (s *composeService) ensureNetworksDown(ctx context.Context, projectName string) ([]downOp, error) {
var ops []downOp var ops []downOp
networks, err := s.apiClient.NetworkList(ctx, moby.NetworkListOptions{Filters: filters.NewArgs(projectFilter(projectName))}) networks, err := s.apiClient.NetworkList(ctx, moby.NetworkListOptions{Filters: filters.NewArgs(projectFilter(projectName))})
if err != nil { if err != nil {