Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
| ... | ... |
@@ -19,6 +19,7 @@ import ( |
| 19 | 19 |
"github.com/docker/swarmkit/agent/exec" |
| 20 | 20 |
"github.com/docker/swarmkit/api" |
| 21 | 21 |
"github.com/docker/swarmkit/api/naming" |
| 22 |
+ "github.com/docker/swarmkit/template" |
|
| 22 | 23 |
"github.com/sirupsen/logrus" |
| 23 | 24 |
"golang.org/x/net/context" |
| 24 | 25 |
) |
| ... | ... |
@@ -191,7 +192,7 @@ func (e *executor) Configure(ctx context.Context, node *api.Node) error {
|
| 191 | 191 |
|
| 192 | 192 |
// Controller returns a docker container runner. |
| 193 | 193 |
func (e *executor) Controller(t *api.Task) (exec.Controller, error) {
|
| 194 |
- dependencyGetter := agent.Restrict(e.dependencies, t) |
|
| 194 |
+ dependencyGetter := template.NewTemplatedDependencyGetter(agent.Restrict(e.dependencies, t), t, nil) |
|
| 195 | 195 |
|
| 196 | 196 |
// Get the node description from the executor field |
| 197 | 197 |
e.mutex.Lock() |