aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm.go
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm.go')
-rw-r--r--vm/vm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/vm.go b/vm/vm.go
index e155fd8e5..42d758517 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -157,7 +157,7 @@ func (pool *Pool) Count() int {
return pool.count
}
-func (pool *Pool) Create(index int) (*Instance, error) {
+func (pool *Pool) Create(ctx context.Context, index int) (*Instance, error) {
if index < 0 || index >= pool.count {
return nil, fmt.Errorf("invalid VM index %v (count %v)", index, pool.count)
}
@@ -170,7 +170,7 @@ func (pool *Pool) Create(index int) (*Instance, error) {
return nil, err
}
}
- impl, err := pool.impl.Create(workdir, index)
+ impl, err := pool.impl.Create(ctx, workdir, index)
if err != nil {
os.RemoveAll(workdir)
return nil, err