Comparing version 0.0.27 to 0.0.28
@@ -67,3 +67,3 @@ const { program } = require("commander"); | ||
const resultFunc = function (err, data) { | ||
console.log(err ? err : data); | ||
console.dir(err ? err : data, {'maxArrayLength': null}); | ||
process.exit(err ? 1 : 0); | ||
@@ -70,0 +70,0 @@ }; |
{ | ||
"name": "awsass", | ||
"description": "AWSASS is an assistant to AWS, mostly for running better scripts.", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"author": "Jsonize", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/jsonize/awsass", |
@@ -54,3 +54,21 @@ const AWS = require("aws-sdk"); | ||
const ecs = new AWS.ECS({apiVersion: '2014-11-13'}); | ||
ecs.listTaskDefinitions(function (err, listTaskDefinitions) { | ||
let iterDefs = function (nextToken, cb) { | ||
ecs.listTaskDefinitions({nextToken: nextToken}, function (err, listTaskDefinitions) { | ||
if (err) { | ||
cb(err); | ||
return; | ||
} | ||
if (listTaskDefinitions.nextToken) | ||
iterDefs(listTaskDefinitions.nextToken, function (err, nextListTaskDefinitions) { | ||
if (err) { | ||
cb(err); | ||
return; | ||
} | ||
cb(undefined, {taskDefinitionArns: listTaskDefinitions.taskDefinitionArns.concat(nextListTaskDefinitions.taskDefinitionArns)}); | ||
}); | ||
else | ||
cb(undefined, listTaskDefinitions); | ||
}); | ||
}; | ||
iterDefs(undefined, function (err, listTaskDefinitions) { | ||
if (err) { | ||
@@ -57,0 +75,0 @@ callback(err); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44670
890