diff --git a/lib/compute/zone.js b/lib/compute/zone.js index 4d02e01a18f..f7537aa82ac 100644 --- a/lib/compute/zone.js +++ b/lib/compute/zone.js @@ -333,6 +333,7 @@ Zone.prototype.createVM = function(name, config, callback) { delete body.os; body.disks = body.disks || []; body.disks.push({ + autoDelete: true, boot: true, initializeParams: { sourceImage: image.selfLink diff --git a/test/compute/zone.js b/test/compute/zone.js index e7fc250189d..bd769beb8b4 100644 --- a/test/compute/zone.js +++ b/test/compute/zone.js @@ -509,6 +509,7 @@ describe('Zone', function() { var expectedConfig = extend({}, EXPECTED_CONFIG, { disks: [ { + autoDelete: true, boot: true, initializeParams: { sourceImage: gceImagesResp.selfLink