This commit is contained in:
Thomas Poindessous 2017-03-08 12:21:30 +01:00
parent a19849cd5d
commit b62f978f1b
1 changed files with 1 additions and 10 deletions

View File

@ -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
} }