Skip to content

Commit 04a1f0d

Browse files
fix(compute): Update compute/disks/consistencyGroups/deleteConsistencyGroup.js
Co-authored-by: code-review-assist-experimental[bot] <172519755+code-review-assist-experimental[bot]@users.noreply.github.com>
1 parent 9e87ec7 commit 04a1f0d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

compute/disks/consistencyGroups/deleteConsistencyGroup.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
'use strict';
1818

1919
async function main(consistencyGroupName, region) {
20-
// [START compute_consistency_group_delete]
20+
// [START compute_consistency_group_delete]
21+
2122
// Import the Compute library
2223
const computeLib = require('@google-cloud/compute');
2324

@@ -38,7 +39,8 @@ async function main(consistencyGroupName, region) {
3839
// The name of the consistency group.
3940
// consistencyGroupName = 'consistency-group-name';
4041

41-
async function callDeleteConsistencyGroup() {
42+
async function callDeleteConsistencyGroup() {
43+
// Delete a resourcePolicyResource
4244
const [response] = await resourcePoliciesClient.delete({
4345
project: projectId,
4446
region,
@@ -59,8 +61,9 @@ async function callDeleteConsistencyGroup() {
5961
console.log(`Consistency group: ${consistencyGroupName} deleted.`);
6062
}
6163

62-
await callCreateConsistencyGroup();
63-
// [END compute_consistency_group_delete]
64+
await callDeleteConsistencyGroup();
65+
66+
// [END compute_consistency_group_delete]
6467
}
6568

6669
main(...process.argv.slice(2)).catch(err => {

0 commit comments

Comments
 (0)