Skip to content

Commit

Permalink
Fix quickstart code sample (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhinkel authored and Ace Nassri committed Nov 21, 2022
1 parent 77b6016 commit e9db288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compute/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const zone = compute.zone('us-central1-a');
const name = 'ubuntu-http';

zone
.createVM(name, {os: 'ubuntu'}, data => {
.createVM(name, {os: 'ubuntu'})
.then(data => {
// `operation` lets you check the status of long-running tasks.
const vm = data[0];
const operation = data[1];
Expand Down

0 comments on commit e9db288

Please sign in to comment.