From ed7172198763cb3b446bebdb220c1c60967d3ef3 Mon Sep 17 00:00:00 2001 From: Pedro Dias Date: Tue, 2 Aug 2016 22:26:30 +0100 Subject: [PATCH] v1.12 --- lib/docker.js | 16 ++++++++++------ package.json | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/docker.js b/lib/docker.js index 1143cb9..78658a0 100644 --- a/lib/docker.js +++ b/lib/docker.js @@ -317,11 +317,13 @@ 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' @@ -329,7 +331,7 @@ Docker.prototype.listServices = function(callback) { }; this.modem.dial(optsf, function(err, data) { - callback(err, data); + args.callback(err, data); }); }; @@ -357,11 +359,13 @@ 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' @@ -369,7 +373,7 @@ Docker.prototype.listTasks = function(callback) { }; this.modem.dial(optsf, function(err, data) { - callback(err, data); + args.callback(err, data); }); }; diff --git a/package.json b/package.json index 3ce8b4e..66196eb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "dockerode", "description": "Docker Remote API module.", - "version": "2.2.10", + "version": "2.3.0", "author": "Pedro Dias ", "maintainers": [ "apocas "