Browse files

fix bug when no deployments exist

  • Loading branch information...
1 parent ceec0c4 commit 1bc4056c63f23eeffd87fb79c945b574e6c6eb65 Russell Haering committed Apr 10, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/web/handlers/web.js
View
6 lib/web/handlers/web.js
@@ -114,6 +114,12 @@ exports.getWebHandlers = function(dreadnot, authdb) {
stack.regions = regions;
async.forEach(stack.regions, function(region, callback) {
+ // TODO: Should this go in dreadnot.js or stack.js maybe?
+ if (region.latest_deployment === '0') {
+ region.latest_deployment = null;
+ callback();
+ return;
+ }
dreadnot.getDeploymentSummary(stack.name, region.name, region.latest_deployment, function(err, deployment) {
region.latest_deployment = deployment;
callback(err);

0 comments on commit 1bc4056

Please sign in to comment.