diff --git a/lib/cli.js b/lib/cli.js index 9fbfac1e..157d5112 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -215,7 +215,7 @@ function runBatch(options) { // If we connected to a server, we would list // the current agents. - client.getAgentInfo(function (err, agents) { + client.getAgents(function (err, agents) { if (err) { throw err; }