Skip to content

Commit

Permalink
Merge pull request #154 from Glebka/master
Browse files Browse the repository at this point in the history
Pass context to the dynamic hosts configuration function.
  • Loading branch information
pstadler authored Dec 9, 2016
2 parents c8cf5c6 + 1939524 commit 08ee42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function Flightplan() {
* ]);
*
* // run with `fly dynamic-hosts`
* plan.target('dynamic-hosts', function(done, options) {
* plan.target('dynamic-hosts', function(done, runtime) {
* var AWS = require('aws-sdk');
* AWS.config.update({accessKeyId: '...', secretAccessKey: '...'});
* var ec2 = new AWS.EC2();
Expand Down Expand Up @@ -386,7 +386,7 @@ Flightplan.prototype.run = function(task, target, options) {

config.hosts(function(result) {
future.return(result);
}, context.options);
}, context);

return future;
};
Expand Down

0 comments on commit 08ee42b

Please sign in to comment.