Skip to content

Commit

Permalink
fix(compute): Update compute/disks/consistencyGroups/deleteConsistenc…
Browse files Browse the repository at this point in the history
…yGroup.js

Co-authored-by: code-review-assist-experimental[bot] <172519755+code-review-assist-experimental[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 9e87ec7 commit 04a1f0d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions compute/disks/consistencyGroups/deleteConsistencyGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
'use strict';

async function main(consistencyGroupName, region) {
// [START compute_consistency_group_delete]
// [START compute_consistency_group_delete]

// Import the Compute library
const computeLib = require('@google-cloud/compute');

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

async function callDeleteConsistencyGroup() {
async function callDeleteConsistencyGroup() {
// Delete a resourcePolicyResource
const [response] = await resourcePoliciesClient.delete({
project: projectId,
region,
Expand All @@ -59,8 +61,9 @@ async function callDeleteConsistencyGroup() {
console.log(`Consistency group: ${consistencyGroupName} deleted.`);
}

await callCreateConsistencyGroup();
// [END compute_consistency_group_delete]
await callDeleteConsistencyGroup();

// [END compute_consistency_group_delete]
}

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

0 comments on commit 04a1f0d

Please sign in to comment.