Skip to content

Commit b62f978

Browse files
committed
Cleanup
1 parent a19849c commit b62f978

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

builtin/providers/google/resource_compute_snapshot.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,6 @@ func resourceComputeSnapshotCreate(d *schema.ResourceData, meta interface{}) err
9090
return err
9191
}
9292

93-
// Get the zone
94-
log.Printf("[DEBUG] Loading zone: %s", d.Get("zone").(string))
95-
/* zone, err := config.clientCompute.Zones.Get(
96-
project, d.Get("zone").(string)).Do()
97-
if err != nil {
98-
return fmt.Errorf(
99-
"Error loading zone '%s': %s", d.Get("zone").(string), err)
100-
} */
101-
10293
// Build the snapshot parameter
10394
snapshot := &compute.Snapshot{
10495
Name: d.Get("name").(string),
@@ -179,7 +170,7 @@ func resourceComputeSnapshotDelete(d *schema.ResourceData, meta interface{}) err
179170
}
180171

181172
zone := d.Get("zone").(string)
182-
err = computeOperationWaitZone(config, op, project, zone, "Creating Snapshot")
173+
err = computeOperationWaitZone(config, op, project, zone, "Deleting Snapshot")
183174
if err != nil {
184175
return err
185176
}

0 commit comments

Comments
 (0)