Code clean-up

This commit is contained in:
Guillaume Giamarchi 2015-02-19 23:53:30 +01:00 committed by Jon Perritt
parent 83160acf69
commit ba880b136b
2 changed files with 1 additions and 5 deletions

View File

@ -1,7 +1,6 @@
package openstack
import (
"errors"
"fmt"
"log"
"time"
@ -258,7 +257,7 @@ func waitForFirewallDeletion(networkingClient *gophercloud.ServiceClient, id str
log.Printf("[DEBUG] Firewall %s is actually deleted", id)
return "", "DELETED", nil
}
return nil, "", errors.New(fmt.Sprintf("Unexpected status code %d", httpStatus.Actual))
return nil, "", fmt.Errorf("Unexpected status code %d", httpStatus.Actual)
}
log.Printf("[DEBUG] Firewall %s deletion is pending", id)

View File

@ -62,9 +62,6 @@ func resourceFWPolicyV1() *schema.Resource {
func resourceFWPolicyV1Create(d *schema.ResourceData, meta interface{}) error {
// TODO To remove
time.Sleep(time.Second * 5)
config := meta.(*Config)
networkingClient, err := config.networkingV2Client(d.Get("region").(string))
if err != nil {