@google-cloud/compute
Advanced tools
Comparing version 2.4.3 to 2.4.4-candidate.0
{ | ||
"name": "@google-cloud/compute", | ||
"description": "Google Compute Engine Client Library for Node.js", | ||
"version": "2.4.3", | ||
"version": "2.4.4-candidate.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
@@ -652,9 +652,13 @@ /*! | ||
body.disks = body.disks || []; | ||
body.disks.push({ | ||
autoDelete: true, | ||
boot: true, | ||
initializeParams: { | ||
sourceImage: image.selfLink, | ||
}, | ||
}); | ||
// Only push an additional disk configuration if the disk provided | ||
// is not bootable: | ||
if (body.disks.length === 0 || !body.disks[0].boot) { | ||
body.disks.unshift({ | ||
autoDelete: true, | ||
boot: true, | ||
initializeParams: { | ||
sourceImage: image.selfLink, | ||
}, | ||
}); | ||
} | ||
self.createVM(name, body, callback); | ||
@@ -661,0 +665,0 @@ }); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
444163
11745
2