Skip to content

Commit

Permalink
v1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Aug 2, 2016
1 parent 179a7a3 commit ed71721
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,19 +317,21 @@ Docker.prototype.listImages = function(opts, callback) {
* Lists Services
* @param {Function} callback Callback
*/
Docker.prototype.listServices = function(callback) {
Docker.prototype.listServices = function(opts, callback) {
var args = util.processArgs(opts, callback);

var optsf = {
path: '/services',
path: '/services?',
method: 'GET',
options: args.opts,
statusCodes: {
200: true,
500: 'server error'
}
};

this.modem.dial(optsf, function(err, data) {
callback(err, data);
args.callback(err, data);
});
};

Expand Down Expand Up @@ -357,19 +359,21 @@ Docker.prototype.listNodes = function(callback) {
* Lists Tasks
* @param {Function} callback Callback
*/
Docker.prototype.listTasks = function(callback) {
Docker.prototype.listTasks = function(opts, callback) {
var args = util.processArgs(opts, callback);

var optsf = {
path: '/tasks',
path: '/tasks?',
method: 'GET',
options: args.opts,
statusCodes: {
200: true,
500: 'server error'
}
};

this.modem.dial(optsf, function(err, data) {
callback(err, data);
args.callback(err, data);
});
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dockerode",
"description": "Docker Remote API module.",
"version": "2.2.10",
"version": "2.3.0",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down

0 comments on commit ed71721

Please sign in to comment.