diff --git a/lib/do_create_instance.js b/lib/do_create_instance.js index 0f693cd..d3fe8db 100644 --- a/lib/do_create_instance.js +++ b/lib/do_create_instance.js @@ -129,7 +129,7 @@ function do_create_instance(subcmd, opts, args, callback) { waitCb(null, ctx.inst); }, 5000); } - : cloudapi.waitForMachineStates); + : cloudapi.waitForMachineStates.bind(cloudapi)); waiter({ id: ctx.inst.id,