File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -317,19 +317,21 @@ Docker.prototype.listImages = function(opts, callback) {
317317 * Lists Services
318318 * @param {Function } callback Callback
319319 */
320- Docker . prototype . listServices = function ( callback ) {
320+ Docker . prototype . listServices = function ( opts , callback ) {
321+ var args = util . processArgs ( opts , callback ) ;
321322
322323 var optsf = {
323- path : '/services' ,
324+ path : '/services? ' ,
324325 method : 'GET' ,
326+ options : args . opts ,
325327 statusCodes : {
326328 200 : true ,
327329 500 : 'server error'
328330 }
329331 } ;
330332
331333 this . modem . dial ( optsf , function ( err , data ) {
332- callback ( err , data ) ;
334+ args . callback ( err , data ) ;
333335 } ) ;
334336} ;
335337
@@ -357,19 +359,21 @@ Docker.prototype.listNodes = function(callback) {
357359 * Lists Tasks
358360 * @param {Function } callback Callback
359361 */
360- Docker . prototype . listTasks = function ( callback ) {
362+ Docker . prototype . listTasks = function ( opts , callback ) {
363+ var args = util . processArgs ( opts , callback ) ;
361364
362365 var optsf = {
363- path : '/tasks' ,
366+ path : '/tasks? ' ,
364367 method : 'GET' ,
368+ options : args . opts ,
365369 statusCodes : {
366370 200 : true ,
367371 500 : 'server error'
368372 }
369373 } ;
370374
371375 this . modem . dial ( optsf , function ( err , data ) {
372- callback ( err , data ) ;
376+ args . callback ( err , data ) ;
373377 } ) ;
374378} ;
375379
Original file line number Diff line number Diff line change 11{
22 "name" : " dockerode" ,
33 "description" : " Docker Remote API module." ,
4- "version" : " 2.2.10 " ,
4+ "version" : " 2.3.0 " ,
55 "author" : " Pedro Dias <petermdias@gmail.com>" ,
66 "maintainers" : [
77 " apocas <petermdias@gmail.com>"
You can’t perform that action at this time.
0 commit comments