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:
2 files changed
+36
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user