fix: attach every network in attach-post-create

Setting multiple networks for the `attach-post-create` network property only connected new app containers to the first network in the list. All specified networks are now attached, matching the existing `attach-post-deploy` behavior.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-10-29 12:25:14 -04:00
1 parent 7e1fd07102
commit fe0f024208
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