providers/google: proper resource type in error message

This commit is contained in:
Mitchell Hashimoto 2014-08-25 22:13:37 -07:00
parent 8639c104a2
commit 0c2a0aeeba
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ func resourceComputeNetworkCreate(d *schema.ResourceData, meta interface{}) erro
state.Timeout = 2 * time.Minute
state.MinTimeout = 1 * time.Second
if _, err := state.WaitForState(); err != nil {
return fmt.Errorf("Error waiting for address to create: %s", err)
return fmt.Errorf("Error waiting for network to create: %s", err)
}
return resourceComputeNetworkRead(d, meta)
@ -88,7 +88,7 @@ func resourceComputeNetworkRead(d *schema.ResourceData, meta interface{}) error
func resourceComputeNetworkDelete(d *schema.ResourceData, meta interface{}) error {
config := meta.(*Config)
// Delete the address
// Delete the network
op, err := config.clientCompute.Networks.Delete(
config.Project, d.Id()).Do()
if err != nil {
@ -106,7 +106,7 @@ func resourceComputeNetworkDelete(d *schema.ResourceData, meta interface{}) erro
state.Timeout = 2 * time.Minute
state.MinTimeout = 1 * time.Second
if _, err := state.WaitForState(); err != nil {
return fmt.Errorf("Error waiting for address to delete: %s", err)
return fmt.Errorf("Error waiting for network to delete: %s", err)
}
d.SetId("")