Merge pull request #9223 from dokku/9222-network-set-attach-post-create-only-attaches-the-first-network

Attach every network in attach-post-create
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2026-10-29 15:46:15 -04:00
commit 029de94cc6
2 files changed
+36 -1

No files matched your search

+3 -1
View File
@@ -216,7 +216,9 @@ func TriggerPostContainerCreate(containerType string, containerID string, appNam
return fmt.Errorf("Network %v does not exist", networkName)
}
return attachAppToNetwork(containerID, networkName, appName, phase, processType)
if err := attachAppToNetwork(containerID, networkName, appName, phase, processType); err != nil {
return err
}
}
return nil