Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1652 from amarzavery/login

modified the location property to be an array from a ";" sep. string
  • Loading branch information...
commit 061ce28caf341a2289e76e1c249d0ce2dcd8edc2 2 parents 6d7175f + 882fe47
@amarzavery amarzavery authored
View
3  lib/commands/asm/iaas/image.js
@@ -112,6 +112,9 @@ exports.show = function(what, cli) {
results.filter(function(theImage) {
return !!theImage;
}).forEach(function(theImage) {
+ if (theImage['location']) {
+ theImage['location'] = theImage['location'].split(';');
+ }
delete theImage['@']; // skip @ xmlns and @ xmlns:i
delete theImage['requestId']; // skip requestId
delete theImage['statusCode']; // statusCode
View
1  test/commands/cli.vm.image-tests.js
@@ -84,6 +84,7 @@ describe('cli', function() {
var vmImageObj = JSON.parse(result.text);
vmImageObj.name.should.equal(vmImgName);
vmImageObj.operatingSystemType.should.equal('Linux');
+ Array.isArray(vmImageObj.location).should.be.true;
done();
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.