Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

Commit 563c81e

Browse files
Anthony Emengojoaopapereira
authored andcommitted
Refactor deployservices
Signed-off-by: Joao Pereira <[email protected]>
1 parent 49a1c24 commit 563c81e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provision/services.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ func (c *Controller) DeployServices(ui UI, services []Service) error {
7777

7878
ui.Say("Deploying %s...", service.Name)
7979

80-
go func(handle string, serviceManifest string) {
81-
errChan <- c.DeployService(service)
82-
}(service.Handle, service.Script)
80+
go func(s Service) {
81+
errChan <- c.DeployService(s)
82+
}(service)
8383

8484
err = c.report(start, ui, b, service, errChan)
8585
if err != nil {

0 commit comments

Comments
 (0)