mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 09:36:44 +00:00
Cleanup
This commit is contained in:
parent
11857816d1
commit
446a2cd6e9
@ -90,15 +90,6 @@ func resourceComputeSnapshotCreate(d *schema.ResourceData, meta interface{}) err
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the zone
|
|
||||||
log.Printf("[DEBUG] Loading zone: %s", d.Get("zone").(string))
|
|
||||||
/* zone, err := config.clientCompute.Zones.Get(
|
|
||||||
project, d.Get("zone").(string)).Do()
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf(
|
|
||||||
"Error loading zone '%s': %s", d.Get("zone").(string), err)
|
|
||||||
} */
|
|
||||||
|
|
||||||
// Build the snapshot parameter
|
// Build the snapshot parameter
|
||||||
snapshot := &compute.Snapshot{
|
snapshot := &compute.Snapshot{
|
||||||
Name: d.Get("name").(string),
|
Name: d.Get("name").(string),
|
||||||
@ -179,7 +170,7 @@ func resourceComputeSnapshotDelete(d *schema.ResourceData, meta interface{}) err
|
|||||||
}
|
}
|
||||||
|
|
||||||
zone := d.Get("zone").(string)
|
zone := d.Get("zone").(string)
|
||||||
err = computeOperationWaitZone(config, op, project, zone, "Creating Snapshot")
|
err = computeOperationWaitZone(config, op, project, zone, "Deleting Snapshot")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user