Skip to content

Commit

Permalink
Pass context object to the dynamic hosts configuration function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlieb Romanov committed Dec 7, 2016
1 parent c8cf5c6 commit 5e9cd4f
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 5e9cd4f

Please sign in to comment.