Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge branch 'merged2' of github.com:Microsoft-Interop/azure-sdk-for-…
Browse files Browse the repository at this point in the history
…node-pr into merged2
  • Loading branch information
Sergey S Shinkevich committed Jun 22, 2012
2 parents bcac85b + 04bea47 commit 12ce628
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
15 changes: 6 additions & 9 deletions lib/cli/commands/vm.js
Expand Up @@ -1022,19 +1022,16 @@ exports.init = function(cli) {
row.cell('VM Name', item.VMName);
row.cell('Status', item.InstanceStatus);
});
} else {
if (logger.format().json) {
logger.json([]);
} else {
logger.info('No VMs found');
}
return;
}

cmdCallback();
}

if (logger.format().json) {
logger.json([]);
} else {
logger.info('No VMs found');
cmdCallback();
}
cmdCallback();
});
}

Expand Down
8 changes: 5 additions & 3 deletions lib/cli/iaas/image.js
Expand Up @@ -342,7 +342,7 @@ function listDisks(cli, options, cmdCallback) {
}
}

// got unique role under a deployment and service, list the endpoints
// got unique role under a deployment and service, list the disks
if (found) {
var osDiskName = foundDisks[0].DiskName;
logger.verbose('Getting info for OS disk ' + osDiskName);
Expand All @@ -358,10 +358,12 @@ function listDisks(cli, options, cmdCallback) {
});
cmdCallback(error);
});
} else {
cmdCallback('No VMs found');
return
}
}

progress.end();
cmdCallback('VM ' + options.name + ' not found');
});
}

0 comments on commit 12ce628

Please sign in to comment.