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 stephenplusplus committed Apr 27, 2018
1 parent 7be1e8f commit e44e063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ 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
3 changes: 2 additions & 1 deletion packages/google-cloud-compute/samples/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 e44e063

Please sign in to comment.