Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 0fbeedf

Browse files
committed
Fix progress writer network creation and removal
Signed-off-by: Ulysses Souza <[email protected]>
1 parent 66f9009 commit 0fbeedf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

local/compose/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ func (s *composeService) ensureNetwork(ctx context.Context, n types.NetworkConfi
930930
}
931931
createOpts.IPAM.Config = append(createOpts.IPAM.Config, config)
932932
}
933-
networkEventName := fmt.Sprintf("Network %q", n.Name)
933+
networkEventName := fmt.Sprintf("Network %s", n.Name)
934934
w := progress.ContextWriter(ctx)
935935
w.Event(progress.CreatingEvent(networkEventName))
936936
if _, err := s.apiClient.NetworkCreate(ctx, n.Name, createOpts); err != nil {
@@ -947,7 +947,7 @@ func (s *composeService) ensureNetwork(ctx context.Context, n types.NetworkConfi
947947

948948
func (s *composeService) ensureNetworkDown(ctx context.Context, networkID string, networkName string) error {
949949
w := progress.ContextWriter(ctx)
950-
eventName := fmt.Sprintf("Network %q", networkName)
950+
eventName := fmt.Sprintf("Network %s", networkName)
951951
w.Event(progress.RemovingEvent(eventName))
952952

953953
if err := s.apiClient.NetworkRemove(ctx, networkID); err != nil {

0 commit comments

Comments
 (0)