Skip to content

Commit 08ee42b

Browse files
authored
Merge pull request #154 from Glebka/master
Pass context to the dynamic hosts configuration function.
2 parents c8cf5c6 + 1939524 commit 08ee42b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function Flightplan() {
157157
* ]);
158158
*
159159
* // run with `fly dynamic-hosts`
160-
* plan.target('dynamic-hosts', function(done, options) {
160+
* plan.target('dynamic-hosts', function(done, runtime) {
161161
* var AWS = require('aws-sdk');
162162
* AWS.config.update({accessKeyId: '...', secretAccessKey: '...'});
163163
* var ec2 = new AWS.EC2();
@@ -386,7 +386,7 @@ Flightplan.prototype.run = function(task, target, options) {
386386

387387
config.hosts(function(result) {
388388
future.return(result);
389-
}, context.options);
389+
}, context);
390390

391391
return future;
392392
};

0 commit comments

Comments
 (0)