Skip to content

Commit 2d24b83

Browse files
author
Joanna Grycz
committed
Changed debian-10 -> debian-11
1 parent 7404cb7 commit 2d24b83

File tree

11 files changed

+18
-17
lines changed

11 files changed

+18
-17
lines changed

compute/createInstance.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* https://cloud.google.com/sdk/gcloud/reference/compute/machine-types/list
2626
* @param {string} sourceImage - Path the the disk image you want to use for your boot
2727
* disk. This can be one of the public images
28-
* (e.g. "projects/debian-cloud/global/images/family/debian-10")
28+
* (e.g. "projects/debian-cloud/global/images/family/debian-11")
2929
* or a private image you have access to.
3030
* You can check the list of available public images using:
3131
* $ gcloud compute images list
@@ -37,7 +37,7 @@ function main(
3737
zone,
3838
instanceName,
3939
machineType = 'n1-standard-1',
40-
sourceImage = 'projects/debian-cloud/global/images/family/debian-10',
40+
sourceImage = 'projects/debian-cloud/global/images/family/debian-11',
4141
networkName = 'global/networks/default'
4242
) {
4343
// [START compute_instances_create]
@@ -48,7 +48,7 @@ function main(
4848
// const zone = 'europe-central2-b'
4949
// const instanceName = 'YOUR_INSTANCE_NAME'
5050
// const machineType = 'n1-standard-1';
51-
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-10';
51+
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-11';
5252
// const networkName = 'global/networks/default';
5353

5454
const compute = require('@google-cloud/compute');

compute/createInstanceFromTemplateWithOverrides.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* https://cloud.google.com/sdk/gcloud/reference/compute/machine-types/list
2727
* @param {string} newDiskSourceImage - Path the the disk image you want to use for your new
2828
* disk. This can be one of the public images
29-
* (like "projects/debian-cloud/global/images/family/debian-10")
29+
* (like "projects/debian-cloud/global/images/family/debian-11")
3030
* or a private image you have access to.
3131
* For a list of available public images, see the documentation:
3232
* http://cloud.google.com/compute/docs/images
@@ -37,7 +37,7 @@ function main(
3737
instanceName,
3838
instanceTemplateName,
3939
machineType = 'n1-standard-2',
40-
newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-10'
40+
newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-11'
4141
) {
4242
// [START compute_instances_create_from_template_with_overrides]
4343
/**
@@ -48,7 +48,7 @@ function main(
4848
// const instanceName = 'YOUR_INSTANCE_NAME';
4949
// const instanceTemplateName = 'YOUR_INSTANCE_TEMPLATE_NAME';
5050
// const machineType = 'n1-standard-1';
51-
// const newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-10';
51+
// const newDiskSourceImage = 'projects/debian-cloud/global/images/family/debian-11';
5252

5353
const compute = require('@google-cloud/compute');
5454

compute/custom-hostname-instance/createInstanceWithCustomHostname.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function main(
4040
instanceName,
4141
hostname,
4242
machineType = 'n1-standard-1',
43-
sourceImage = 'projects/debian-cloud/global/images/family/debian-10',
43+
sourceImage = 'projects/debian-cloud/global/images/family/debian-11',
4444
networkName = 'global/networks/default'
4545
) {
4646
// [START compute_instances_create_custom_hostname]
@@ -52,7 +52,7 @@ function main(
5252
// const instanceName = 'YOUR_INSTANCE_NAME'
5353
// const hostname = 'host.example.com'
5454
// const machineType = 'n1-standard-1';
55-
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-10';
55+
// const sourceImage = 'projects/debian-cloud/global/images/family/debian-11';
5656
// const networkName = 'global/networks/default';
5757

5858
const compute = require('@google-cloud/compute');

compute/instances/create-start-instance/createInstanceWithAdditionalDisk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function main(projectId, zone, instanceName) {
3838
// List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details.
3939
const [newestDebian] = await imagesClient.getFromFamily({
4040
project: 'debian-cloud',
41-
family: 'debian-10',
41+
family: 'debian-11',
4242
});
4343

4444
const [response] = await instancesClient.insert({

compute/instances/create-start-instance/createInstanceWithSubnet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function main(
5252
// List of public operating system (OS) images: https://cloud.google.com/compute/docs/images/os-details.
5353
const [newestDebian] = await imagesClient.getFromFamily({
5454
project: 'debian-cloud',
55-
family: 'debian-10',
55+
family: 'debian-11',
5656
});
5757

5858
const [response] = await instancesClient.insert({

compute/instances/preventing-accidental-vm-deletion/createInstance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function main(projectId, zone, instanceName, deleteProtection) {
5151
initializeParams: {
5252
diskSizeGb: '10',
5353
sourceImage:
54-
'projects/debian-cloud/global/images/family/debian-10',
54+
'projects/debian-cloud/global/images/family/debian-11',
5555
},
5656
autoDelete: true,
5757
boot: true,

compute/test/createComputeHyperdiskPool.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ async function deleteStoragePool(projectId, zone, storagePoolName) {
3434
});
3535
} catch (err) {
3636
console.error('Deleting storage pool failed: ', err);
37+
throw new Error(err);
3738
}
3839
}
3940

compute/test/createInstanceTemplates.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const createInstance = async (projectId, zone, instanceName) => {
3434
{
3535
initializeParams: {
3636
diskSizeGb: '250',
37-
sourceImage: 'projects/debian-cloud/global/images/family/debian-10',
37+
sourceImage: 'projects/debian-cloud/global/images/family/debian-11',
3838
},
3939
autoDelete: true,
4040
boot: true,

compute/test/createStartInstance.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('create start instance tests', () => {
132132

133133
const [newestDebian] = await imagesClient.getFromFamily({
134134
project: 'debian-cloud',
135-
family: 'debian-10',
135+
family: 'debian-11',
136136
});
137137

138138
await createDisk(projectId, zone, diskName, newestDebian.selfLink);
@@ -163,7 +163,7 @@ describe('create start instance tests', () => {
163163

164164
const [newestDebian] = await imagesClient.getFromFamily({
165165
project: 'debian-cloud',
166-
family: 'debian-10',
166+
family: 'debian-11',
167167
});
168168

169169
let output;

compute/test/samples.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ describe('samples', () => {
269269
initializeParams: {
270270
diskSizeGb: '10',
271271
sourceImage:
272-
'projects/debian-cloud/global/images/family/debian-10',
272+
'projects/debian-cloud/global/images/family/debian-11',
273273
},
274274
autoDelete: true,
275275
boot: true,
@@ -447,7 +447,7 @@ describe('samples', () => {
447447
initializeParams: {
448448
diskSizeGb: '10',
449449
sourceImage:
450-
'projects/debian-cloud/global/images/family/debian-10',
450+
'projects/debian-cloud/global/images/family/debian-11',
451451
},
452452
autoDelete: true,
453453
boot: true,

0 commit comments

Comments
 (0)